Skip to content

Commit

Permalink
Remove unnecessary views (#446)
Browse files Browse the repository at this point in the history
Fixes #445
  • Loading branch information
simonbyrne authored Nov 19, 2020
1 parent 5d6fae8 commit 91d9503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_shared_win.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function main()
mpi_shared_array(node_comm, Float32, (100, 2); owner_rank=owner_rank)

if node_rank == 0
(@view shared_arr[:, 1]) .= 1:100
shared_arr[:, 1] .= 1:100
elseif node_rank == 1
(@view shared_arr[:, 2]) .= 901:1000
shared_arr[:, 2] .= 901:1000
end

MPI.Barrier(node_comm) # finish writing before reading
Expand Down

0 comments on commit 91d9503

Please sign in to comment.