1 / 9

Blocking / Non-Blocking Send and Receive Operations

Blocking / Non-Blocking Send and Receive Operations. MPI_Send(void *buf, int count, …) MPI_Recv(void *buf, int count, …) Blocking Operations : Send- and receive buffers can be used safely after the execution of the command blocking receive analogously. time. MPI_Send. Reading send buffer.

Download Presentation

Blocking / Non-Blocking Send and Receive Operations

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Blocking / Non-Blocking Send and Receive Operations • MPI_Send(void *buf, int count, …)MPI_Recv(void *buf, int count, …) • Blocking Operations: Send- and receive buffers can be used safely after the execution of the command blocking receive analogously time MPI_Send Reading send buffer

  2. Synchronous Send • Synchronous Send: MPI_Ssend does not return, before the corresponding receive operation started Blocking version: time MPI_Recv Writing to receive buffer time MPI_Ssend Reading from send buffer

  3. Buffered / Unbuffered Send and Receive Operations • Unbuffered: • Buffered: Sender Receiver Send buffer Receive buffer Sender Receiver Send buffer Receive buffer System buffer

  4. Synchronous Send • Non-blocking: Zeit MPI_Irecv MPI_Wait Writing to receive buffer Zeit MPI_Issend MPI_Wait Reading from send buffer

  5. Deadlocks / Standard Send • MPI_Send: Could be synchronous or buffered (i.e. MPI_Sendcould wait for the corresponding receive) MPI_Send MPI_Send Deadlock? MPI_Recv MPI_Recv

  6. 1 LE  4 MPI: Example (A rather stupid way of) computing  via Monte-Carlo method : area 4 : area  area of circle area of square =

More Related