Skip to content

Commit 4045223

Browse files
committed
Use sync all because it's better practice
(for performance)
1 parent 71ef01c commit 4045223

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/unit/events/allocatable_p2p_event_post.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ program allocatable_p2p_event_post
4747
if (me == 2) print*,' I am image 2, I have posted to 4'
4848
if (me == 4) then
4949
event wait(snd_copied(2))
50-
sync images(*) ! sync not required, but *may* expose cleanup issues/segfaults etc.
50+
sync all ! sync not required, but *may* expose cleanup issues/segfaults etc.
5151
print *, 'Test passed.'
5252
end if
5353
if (me /= 4) then
54-
sync images(4)
54+
sync all
5555
print *, 'I am', me, 'and image 4 told me it received the event'
5656
end if
5757
if (allocated(snd_copied)) deallocate(snd_copied)

0 commit comments

Comments
 (0)