Do not disable atomics for HIP

atomics are disabled for NVIDIA 1.0 cards, which should not affect ROCm HIP
This commit is contained in:
Vsevak
2020-09-21 22:03:50 +03:00
parent 36fdba32e7
commit 459d51bbea

View File

@ -26,7 +26,7 @@ _texture( q_tex,int2);
// Allow PPPM to compile without atomics for NVIDIA 1.0 cards, error
// generated at runtime with use of pppm/gpu
#if (__CUDA_ARCH__ < 110)
#if defined(NV_KERNEL) && (__CUDA_ARCH__ < 110)
#define atomicAdd(x,y) *(x)+=0
#endif