Skip to content
Snippets Groups Projects
Commit 4a4a2f85 authored by psychocrypt's avatar psychocrypt
Browse files

fix possible deadlock with Volta

If CUDA 9.X is used and the miner is compiled for `sm_70` and used with Volta GPUs than the miner
deadlocks if `threads` is not a multiple of `32`.

- use `__activemask()` to get all active lanes
parent 94d41580
No related branches found
No related tags found
No related merge requests found
......@@ -187,7 +187,7 @@ __forceinline__ __device__ uint32_t shuffle(volatile uint32_t* ptr,const uint32_
unusedVar( ptr );
unusedVar( sub );
# if(__CUDACC_VER_MAJOR__ >= 9)
return __shfl_sync(0xFFFFFFFF, val, src, group_n );
return __shfl_sync(__activemask(), val, src, group_n );
# else
return __shfl( val, src, group_n );
# endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment