Blocking / Non-Blocking Send and Receive Operations - PowerPoint PPT Presentation

britanni-hoover
blocking non blocking send and receive operations n.
Skip this Video
Loading SlideShow in 5 Seconds..
Blocking / Non-Blocking Send and Receive Operations PowerPoint Presentation
Download Presentation
Blocking / Non-Blocking Send and Receive Operations

play fullscreen
1 / 9
Download Presentation
Blocking / Non-Blocking Send and Receive Operations
175 Views
Download Presentation

Blocking / Non-Blocking Send and Receive Operations

- - - - - - - - - - - - - - - - - - - - - - - - - - - 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 =