We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9356cf4 commit 1e2c4bcCopy full SHA for 1e2c4bc
examples/alpaka/nbody/nbody.cpp
@@ -204,7 +204,7 @@ struct UpdateKernel
204
for(int blockOffset = 0; blockOffset < problemSize; blockOffset += SharedElementsPerBlock)
205
{
206
for(int j = 0; j < SharedElementsPerBlock; j += ThreadsPerBlock)
207
- sharedView(j) = particles(blockOffset + tbi + j);
+ sharedView(tbi + j) = particles(blockOffset + tbi + j);
208
alpaka::syncBlockThreads(acc);
209
for(int j = 0; j < SharedElementsPerBlock; ++j)
210
pPInteraction(acc, pis, sharedView(j));
0 commit comments