Skip to content

Commit

Permalink
Fix wrong shared memory address computation
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 5, 2024
1 parent 9356cf4 commit 1e2c4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/alpaka/nbody/nbody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ struct UpdateKernel
for(int blockOffset = 0; blockOffset < problemSize; blockOffset += SharedElementsPerBlock)
{
for(int j = 0; j < SharedElementsPerBlock; j += ThreadsPerBlock)
sharedView(j) = particles(blockOffset + tbi + j);
sharedView(tbi + j) = particles(blockOffset + tbi + j);
alpaka::syncBlockThreads(acc);
for(int j = 0; j < SharedElementsPerBlock; ++j)
pPInteraction(acc, pis, sharedView(j));
Expand Down

0 comments on commit 1e2c4bc

Please sign in to comment.