Skip to content

Commit

Permalink
Fix CtxBlockOacc: SyncBlockThreads
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelling authored and psychocoderHPC committed Apr 16, 2021
1 parent f428bb0 commit bd69344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/alpaka/ctx/block/CtxBlockOacc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ namespace alpaka
}
# pragma acc atomic capture
{
++m_syncCounter[slot];
sum = m_syncCounter[slot];
++m_syncCounter[slot + 1];
sum = m_syncCounter[slot + 1];
}
while(sum < workerNum)
{
Expand Down

0 comments on commit bd69344

Please sign in to comment.