mpi - MPI_Recv is not blocking -
i have mpi_isend , mpi_recv program. assume have 2 processors , both of them this.
- mpi_isend
- mpi_recv
- mpi_wait
what expect sending data on both processors without blocking. wait data come. resume, this.
- 0 sends 1
- 1 sends 0
- 0 receives 1
- 1 receives 0
but this.
- 0 sends 1
- 0 receives 1 (although 1 didn't send!)
- 1 sends 0 (now sends)
- 1 receives 0
i thought mpi_recv should wait until data comes. may causing this?
mpi_recv
block.
you not see messages in correct order because standard output buffered , not see outputs @ once.
Comments
Post a Comment