Skip to content

Commit

Permalink
Add tests for serialized isend/irecv
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Apr 28, 2016
1 parent 5d24cc9 commit d828683
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test_sendrecv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,18 @@ rreq = nothing
sreq = nothing
gc()

root = 0
g = x -> x^2 + 2x - 1
if MPI.Comm_rank(comm) == root + 1
done, f, stat = MPI.irecv( root, root+32, comm )
if done
@test f(3) == g(3)
@test f(5) == g(5)
@test f(7) == g(7)
end
elseif MPI.Comm_rank(comm) == root
f = g
sreq = MPI.isend(f, dst, rank+32, comm)
end

MPI.Finalize()

0 comments on commit d828683

Please sign in to comment.