Skip to content

Commit 8f3a191

Browse files
committed
Add tests for serialized isend/irecv
1 parent 5d24cc9 commit 8f3a191

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/test_sendrecv.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,16 @@ rreq = nothing
106106
sreq = nothing
107107
gc()
108108

109+
root = 0
110+
g = x -> x^2 + 2x - 1
111+
if MPI.Comm_rank(comm) == root + 1
112+
done, f, stat = MPI.irecv( root, root+32, comm )
113+
@test f(3) == g(3)
114+
@test f(5) == g(5)
115+
@test f(7) == g(7)
116+
elseif MPI.Comm_rank(comm) == root
117+
f = g
118+
sreq = MPI.isend(f, dst, rank+32, comm)
119+
end
120+
109121
MPI.Finalize()

0 commit comments

Comments
 (0)