Skip to content

Commit

Permalink
Merge pull request #2390 from psychocrypt/fix-cnR1802223
Browse files Browse the repository at this point in the history
fix cn_r block 1802223 bug
  • Loading branch information
fireice-uk authored Apr 1, 2019
2 parents 41cdbaf + 38e7eb0 commit 3af3653
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 3af3653

Please sign in to comment.