From 459d51bbea689e7d16b31b690d3d41896de04eba Mon Sep 17 00:00:00 2001 From: Vsevak Date: Mon, 21 Sep 2020 22:03:50 +0300 Subject: [PATCH] Do not disable atomics for HIP atomics are disabled for NVIDIA 1.0 cards, which should not affect ROCm HIP --- lib/gpu/lal_pppm.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gpu/lal_pppm.cu b/lib/gpu/lal_pppm.cu index 6cf8aafbd0..ee9f1b61d6 100644 --- a/lib/gpu/lal_pppm.cu +++ b/lib/gpu/lal_pppm.cu @@ -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