diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-10-20 21:12:50 +0200 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-10-20 21:12:50 +0200 |
commit | 18ba334391c9cef2d53102f8b24dba63b69ec994 (patch) | |
tree | 7d8b8e09c42f92546bc276f41add51963c046793 /xmrstak | |
parent | 6701b0c2025987674708c9984c1d76461428c09e (diff) | |
download | xmr-stak-18ba334391c9cef2d53102f8b24dba63b69ec994.zip xmr-stak-18ba334391c9cef2d53102f8b24dba63b69ec994.tar.gz |
fix CUDA 9 shuffle warning
use `__shffl_snyc` if CUDA 9+ is avalable
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 } |