Skip to content
Snippets Groups Projects
Commit 38e7eb0c authored by psychocrypt's avatar psychocrypt
Browse files

fix cn_r block 1802223 bug

fix nvrtc deadlock with `cuda version != 10.1`: https://github.com/xmrig/xmrig-nvidia/issues/260
parent 41cdbaff
No related branches found
No related tags found
No related merge requests found
...@@ -462,10 +462,10 @@ __global__ void CryptonightR_phase2( ...@@ -462,10 +462,10 @@ __global__ void CryptonightR_phase2(
uint64_t bx0 = ((uint64_t*)(d_ctx_b + thread * 16))[sub]; uint64_t bx0 = ((uint64_t*)(d_ctx_b + thread * 16))[sub];
uint64_t bx1 = ((uint64_t*)(d_ctx_b + thread * 16 + 4))[sub]; uint64_t bx1 = ((uint64_t*)(d_ctx_b + thread * 16 + 4))[sub];
uint32_t r0 = d_ctx_b[thread * 16 + 4 * 2]; volatile uint32_t r0 = d_ctx_b[thread * 16 + 4 * 2];
uint32_t r1 = d_ctx_b[thread * 16 + 4 * 2 + 1]; volatile uint32_t r1 = d_ctx_b[thread * 16 + 4 * 2 + 1];
uint32_t r2 = d_ctx_b[thread * 16 + 4 * 2 + 2]; volatile uint32_t r2 = d_ctx_b[thread * 16 + 4 * 2 + 2];
uint32_t r3 = d_ctx_b[thread * 16 + 4 * 2 + 3]; volatile uint32_t r3 = d_ctx_b[thread * 16 + 4 * 2 + 3];
const int batchsize = (ITERATIONS * 2) >> ( 1 + bfactor ); const int batchsize = (ITERATIONS * 2) >> ( 1 + bfactor );
const int start = partidx * batchsize; const int start = partidx * batchsize;
......
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