Skip to content

Commit

Permalink
use explicitly spelled atomic functions in examples and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Oct 27, 2020
1 parent c430c4c commit c69b517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions example/monteCarloIntegration/src/monteCarloIntegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,7 @@ struct Kernel
}

// Add the local result to the sum of the other results.
alpaka::atomicOp<
alpaka::op::Add>(
acc,
globalCounter,
localCount,
alpaka::hierarchy::Blocks{});
alpaka::atomicAdd(acc, globalCounter, localCount, alpaka::hierarchy::Blocks{});
}
};

Expand Down
2 changes: 1 addition & 1 deletion test/integ/sharedMem/src/sharedMem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class SharedMemKernel
// Now add up all the cells atomically and write the result to cell 0 of the shared memory.
if(blockThreadIdx1d > 0)
{
alpaka::atomicOp<alpaka::op::Add>(acc, &pBlockShared[0], pBlockShared[blockThreadIdx1d]);
alpaka::atomicAdd(acc, &pBlockShared[0], pBlockShared[blockThreadIdx1d]);
}


Expand Down

0 comments on commit c69b517

Please sign in to comment.