We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4ce1fd commit 6bdcaa0Copy full SHA for 6bdcaa0
demos/mpi-isend.py
@@ -15,14 +15,14 @@ def calculate_something(rank):
15
data = arange(size, dtype=float) * (rank + 1)
16
req = comm.Isend(data, dest=1) # start a send
17
calculate_something(rank) # .. do something else ..
18
- req.Wait() # wait for send to finish
+ req.wait() # wait for send to finish
19
# safe to read/write data again
20
21
elif rank == 1:
22
data = empty(size, float)
23
req = comm.Irecv(data, source=0) # post a receive
24
25
+ req.wait() # wait for receive to finish
26
# data is now ready for use
27
28
if rank == 1:
0 commit comments