summaryrefslogtreecommitdiffstats
path: root/xmrstak
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2017-10-21 19:45:27 +0100
committerGitHub <noreply@github.com>2017-10-21 19:45:27 +0100
commitbd31e5b01968af3e95de55bc3779d4f2f455018b (patch)
tree32f686e034edad0ddb0cd38417ef020f028ecccc /xmrstak
parent1b639b6eafdaa5fe06d94c9a8b579d9bfd6f9948 (diff)
parent630bcffb9f890c00cc9b95a51af1a2adcb50c9dd (diff)
downloadxmr-stak-bd31e5b01968af3e95de55bc3779d4f2f455018b.zip
xmr-stak-bd31e5b01968af3e95de55bc3779d4f2f455018b.tar.gz
Merge pull request #60 from psychocrypt/fix-amdAssert
fix assert in AMD backend
Diffstat (limited to 'xmrstak')
-rw-r--r--xmrstak/backend/amd/amd_gpu/gpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.cpp b/xmrstak/backend/amd/amd_gpu/gpu.cpp
index ca81718..f9908cb 100644
--- a/xmrstak/backend/amd/amd_gpu/gpu.cpp
+++ b/xmrstak/backend/amd/amd_gpu/gpu.cpp
@@ -896,7 +896,7 @@ size_t XMRRunJob(GpuContext* ctx, cl_uint* HashOutput)
// round up to next multiple of w_size
BranchNonces[i] = ((BranchNonces[i] + w_size - 1u) / w_size) * w_size;
// number of global threads must be a multiple of the work group size (w_size)
- assert(BranchNonces%w_size == 0);
+ assert(BranchNonces[i]%w_size == 0);
if((ret = clEnqueueNDRangeKernel(ctx->CommandQueues, ctx->Kernels[i + 3], 1, &ctx->Nonce, BranchNonces + i, &w_size, 0, NULL, NULL)) != CL_SUCCESS)
{
printer::inst()->print_msg(L1,"Error %s when calling clEnqueueNDRangeKernel for kernel %d.", err_to_str(ret), i + 3);
OpenPOWER on IntegriCloud