fix CUDA 9 shuffle warning

use `__shffl_snyc` if CUDA 9+ is avalable
This commit is contained in:
psychocrypt
2017-10-20 21:12:50 +02:00
parent 6701b0c202
commit 18ba334391
@@ -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
}