Skip to content

Commit

Permalink
Merge pull request #2495 from psychocrypt/fix-nvidiaBrokenPhase3
Browse files Browse the repository at this point in the history
NVIDIA: fix broken phase 3
  • Loading branch information
fireice-uk authored Jul 31, 2019
2 parents 5f6f7b4 + 38ecd0d commit 644c882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmrstak/backend/nvidia/nvcc_code/cuda_core.cu
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ void cryptonight_core_gpu_hash(nvid_ctx* ctx, uint32_t nonce, const xmrstak_algo
if(blockSizePhase3 * 2 <= ctx->device_maxThreadsPerBlock)
{
blockSizePhase3 *= 2;
gridSizePhase3 = (blockSizePhase3 + 1) / 2;
gridSizePhase3 = (gridSizePhase3 + 1) / 2;
}
for(int i = 0; i < roundsPhase3; i++)
{
Expand Down Expand Up @@ -978,7 +978,7 @@ void cryptonight_core_gpu_hash_gpu(nvid_ctx* ctx, uint32_t nonce, const xmrstak_
if(blockSizePhase3 * 2 <= ctx->device_maxThreadsPerBlock)
{
blockSizePhase3 *= 2;
gridSizePhase3 = (blockSizePhase3 + 1) / 2;
gridSizePhase3 = (gridSizePhase3 + 1) / 2;
}

for(int i = 0; i < roundsPhase3; i++)
Expand Down

0 comments on commit 644c882

Please sign in to comment.