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