From d81aa3c92c3f44ec7fd636b11dc9717bdcd85b0b Mon Sep 17 00:00:00 2001 From: Anup Parikh Date: Wed, 5 Jul 2017 14:24:57 -0600 Subject: [PATCH] Fix issue #1674 --- gpu/people/src/cuda/nvidia/NPP_staging.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu/people/src/cuda/nvidia/NPP_staging.cu b/gpu/people/src/cuda/nvidia/NPP_staging.cu index 144dae583a6..612aa7d16de 100644 --- a/gpu/people/src/cuda/nvidia/NPP_staging.cu +++ b/gpu/people/src/cuda/nvidia/NPP_staging.cu @@ -2070,7 +2070,7 @@ NCVStatus nppiStInterpolateFrames(const NppStInterpolationState *pState) //============================================================================== -#if __CUDA_ARCH__ < 200 +#if ((defined __CUDA_ARCH__) && (__CUDA_ARCH__ < 200)) // FP32 atomic add static __forceinline__ __device__ float _atomicAdd(float *addr, float val)