Skip to content

Commit

Permalink
Fixup do not increase the value at each iteration
Browse files Browse the repository at this point in the history
Co-Authored-By: Christian Trott <[email protected]>
Signed-off-by: Damien L-G <[email protected]>
  • Loading branch information
dalg24 and crtrott committed Oct 18, 2024
1 parent f78e1f5 commit 82d3d7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/shylu/shylu_node/basker/src/shylubasker_thread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ namespace BaskerNS
BASKER_INLINE
void atomic_barrier_fanout(volatile Int &value, const Int l_size)
{
while(Kokkos::atomic_inc_fetch(&value) < l_size)
Kokkos::atomic_inc(&(value))
while(value < l_size)
{
BASKER_NO_OP;
}
Expand Down

0 comments on commit 82d3d7d

Please sign in to comment.