Skip to content

Commit

Permalink
fix cn_r block 1802223 bug
Browse files Browse the repository at this point in the history
fix nvrtc deadlock with `cuda version != 10.1`: xmrig/xmrig-nvidia#260
  • Loading branch information
psychocrypt committed Apr 1, 2019
1 parent 41cdbaf commit 38e7eb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xmrstak/backend/nvidia/nvcc_code/cuda_cryptonight_r.curt
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ __global__ void CryptonightR_phase2(
uint64_t bx0 = ((uint64_t*)(d_ctx_b + thread * 16))[sub];
uint64_t bx1 = ((uint64_t*)(d_ctx_b + thread * 16 + 4))[sub];

uint32_t r0 = d_ctx_b[thread * 16 + 4 * 2];
uint32_t r1 = d_ctx_b[thread * 16 + 4 * 2 + 1];
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 r0 = d_ctx_b[thread * 16 + 4 * 2];
volatile uint32_t r1 = d_ctx_b[thread * 16 + 4 * 2 + 1];
volatile uint32_t r2 = d_ctx_b[thread * 16 + 4 * 2 + 2];
volatile uint32_t r3 = d_ctx_b[thread * 16 + 4 * 2 + 3];

const int batchsize = (ITERATIONS * 2) >> ( 1 + bfactor );
const int start = partidx * batchsize;
Expand Down

0 comments on commit 38e7eb0

Please sign in to comment.