diff options
Diffstat (limited to 'xmrstak')
-rw-r--r-- | xmrstak/backend/nvidia/nvcc_code/cuda_core.cu | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu b/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu index 0c086e8..e1b78ce 100644 --- a/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu +++ b/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu @@ -156,7 +156,11 @@ __forceinline__ __device__ uint32_t shuffle(volatile uint32_t* ptr,const uint32_ #else unusedVar( ptr ); unusedVar( sub ); - return __shfl( val, src, 4 ); +# if(__CUDACC_VER_MAJOR__ >= 9) + return __shfl_sync(0xFFFFFFFF, val, src, 4 ); +# else + return __shfl( val, src, 4 ); +# endif #endif } |