Skip to content

Commit

Permalink
Test for inplace Scan (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt authored Nov 3, 2023
1 parent 3f799ad commit a094e18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_scan.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ for T in setdiff(MPITestTypes, [Char, Int8, UInt8])

B = MPI.Scan(T(rank+1), *, comm)
@test B[1] == prodrank

# in-place
C = copy(A)
C = MPI.Scan!(C, *, comm)
@test C isa ArrayType{T}
@test C == ArrayType{T}(fill(T(prodrank), 4))
end

MPI.Finalize()
Expand Down

0 comments on commit a094e18

Please sign in to comment.