Skip to content

Commit

Permalink
see:
Browse files Browse the repository at this point in the history
  • Loading branch information
bioharz committed Sep 28, 2017
1 parent 3e2a8e4 commit 212197f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amd_gpu/gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ size_t XMRRunJob(GpuContext* ctx, cl_uint* HashOutput)
return(ERR_OCL_API);
}

BranchNonces[i] += BranchNonces[i] + (w_size - (BranchNonces[i] & (w_size - 1)));
BranchNonces[i] = ((size_t)ceil( (double)BranchNonces[i] / (double)w_size) ) * w_size;
if((ret = clEnqueueNDRangeKernel(ctx->CommandQueues, ctx->Kernels[i + 3], 1, &ctx->Nonce, BranchNonces + i, &w_size, 0, NULL, NULL)) != CL_SUCCESS)
{
printer_print_msg("Error %s when calling clEnqueueNDRangeKernel for kernel %d.", err_to_str(ret), i + 3);
Expand Down

0 comments on commit 212197f

Please sign in to comment.