Non Blocking communication in MPI and MPI Wait Issue. Not all information is passed correctly

前端 未结 2 713
闹比i
闹比i 2021-01-27 08:25

I noticed that not all my MPI_Isend/MPI_IRecv were being executed. I think it may perhaps be either the order in which I do my send and receive or the fact that the code doesn\'

相关标签:
2条回答
  • 2021-01-27 08:53

    Either rank 0 or 1 could still be sending data after this block of code has been executed (as you don't wait on the send request object). This could cause problems if you modify the data before it has finished sending.

    For this particular example, perhaps MPI_Sendrecv would be useful?

    0 讨论(0)
  • 2021-01-27 08:53

    For every call to a non-blocking MPI call, there has to be a corresponding wait. You are missing one wait per process.

    0 讨论(0)
提交回复
热议问题