amjad ali wrote:
I don't know how literally to read the code you sent. Maybe your actual code "does the right thing", but just to confirm I think the correct code should look like this: DO J=1, N CALL MPI_ISEND(...) END DO DO K=1, M CALL MPI_RECV(...) END DO CALL MPI_WAITALL(...) That is, you start all non-blocking sends. Then you perform receives. Then you complete the sends. More commonly, one would post all receives first using non-blocking calls (MPI_IRECV), then perform all sends (MPI_SEND), then complete the receives with MPI_WAITALL. Yet another option is to post non-blocking receives, then non-blocking sends, then complete all sends and receives with a WAITALL call that has M+N requests. Sorry if you already knew all this and I'm just overreacting to the simplified code you sent out. |
- [OMPI users] programming qsn?? amjad ali
- Re: [OMPI users] programming qsn?? Eugene Loh
- Re: [OMPI users] programming qsn?? amjad ali
- Re: [OMPI users] programming qsn?? Eugene Loh
- Re: [OMPI users] programming qsn?? amjad ali