summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/amd/amd_gpu
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2018-03-14 14:35:38 +0000
committerGitHub <noreply@github.com>2018-03-14 14:35:38 +0000
commit5014bdda628f64ab780d02de371bac4997573d10 (patch)
tree95ffc9506eba54491bcbdef9dae9832a54649972 /xmrstak/backend/amd/amd_gpu
parentcfad5a5100b97c0f5559f1bf6982879e0ac8cd7d (diff)
parent702ab5669912dd1bc9c15f9dd6854889cc09af5e (diff)
downloadxmr-stak-5014bdda628f64ab780d02de371bac4997573d10.zip
xmr-stak-5014bdda628f64ab780d02de371bac4997573d10.tar.gz
Merge pull request #1156 from psychocrypt/fix-shadowedVariable
fix shadowed variable
Diffstat (limited to 'xmrstak/backend/amd/amd_gpu')
-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 79afa00..c45f211 100644
--- a/xmrstak/backend/amd/amd_gpu/gpu.cpp
+++ b/xmrstak/backend/amd/amd_gpu/gpu.cpp
@@ -1053,7 +1053,7 @@ size_t XMRRunJob(GpuContext* ctx, cl_uint* HashOutput)
if(ctx->compMode)
{
// round up to next multiple of w_size
- size_t g_thd = ((g_intensity + w_size - 1u) / w_size) * w_size;
+ g_thd = ((g_intensity + w_size - 1u) / w_size) * w_size;
// number of global threads must be a multiple of the work group size (w_size)
assert(g_thd%w_size == 0);
}
OpenPOWER on IntegriCloud