Skip to content
Snippets Groups Projects
Commit 0e0bcd8f authored by Ben Cumming's avatar Ben Cumming Committed by Sam Yates
Browse files

Use native cuda atomicAdd on Pascal (#174)

Fixes #125

* Add `cuda_atomic_add` and `cuda_atomic_sub` wrappers for atomic addition.
* Choose native atomic add for Pascal and later architectures.
* Choose CAS workaround for devices earlier than Pascal.
* Add unit test for wrappers.
* Change default CUDA architecture target to `sm_60` in `CMakeLists.txt`.
parent 2ca1d47f
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment