mpi - MPI_Recv is not blocking -


i have mpi_isend , mpi_recv program. assume have 2 processors , both of them this.

  1. mpi_isend
  2. mpi_recv
  3. mpi_wait

what expect sending data on both processors without blocking. wait data come. resume, this.

  1. 0 sends 1
  2. 1 sends 0
  3. 0 receives 1
  4. 1 receives 0

but this.

  1. 0 sends 1
  2. 0 receives 1 (although 1 didn't send!)
  3. 1 sends 0 (now sends)
  4. 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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -