Skip to content

Commit

Permalink
Apply changes to work with alpaka develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sbastrakov authored and psychocoderHPC committed May 9, 2019
1 parent 25855f1 commit ba91e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pmacc/nvidia/atomic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ T atomicAllInc(T *ptr)
#ifdef __CUDA_ARCH__
return atomicAllInc(alpaka::atomic::AtomicCudaBuiltIn(), ptr, ::alpaka::hierarchy::Grids());
#else
// assume that we can use stl atomics if we are not on gpu
return atomicAllInc(alpaka::atomic::AtomicStlLock<16>(), ptr, ::alpaka::hierarchy::Grids());
// assume that we can use the standard library atomics if we are not on gpu
return atomicAllInc(alpaka::atomic::AtomicStdLibLock<16>(), ptr, ::alpaka::hierarchy::Grids());
#endif
}

Expand Down

0 comments on commit ba91e09

Please sign in to comment.