Skip to content

Commit

Permalink
Update libs/core/gasnet_base/src/gasnet_environment.cpp
Browse files Browse the repository at this point in the history
corrections to use of gasnet polling

Co-authored-by: Dan Bonachea <[email protected]>
  • Loading branch information
ct-clmsn and bonachea authored Jul 14, 2023
1 parent b0f1f25 commit 40146e5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libs/core/gasnet_base/src/gasnet_environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,7 @@ namespace hpx::util {
int retval;

gasnet_barrier_notify(0, GASNET_BARRIERFLAG_ANONYMOUS);
while ((retval = gasnet_barrier_try(0, GASNET_BARRIERFLAG_ANONYMOUS)) ==
GASNET_ERR_NOT_READY)
{
}
gasnet_barrier_try(0, GASNET_BARRIERFLAG_ANONYMOUS);
gasnet_barrier_wait(0, GASNET_BARRIERFLAG_ANONYMOUS);

gasnet_set_waitmode(GASNET_WAIT_BLOCK);

Expand Down

0 comments on commit 40146e5

Please sign in to comment.