diff --git a/include/alpaka/ctx/block/CtxBlockOacc.hpp b/include/alpaka/ctx/block/CtxBlockOacc.hpp index d3ec460c0a83..a7675258382e 100644 --- a/include/alpaka/ctx/block/CtxBlockOacc.hpp +++ b/include/alpaka/ctx/block/CtxBlockOacc.hpp @@ -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) {