Skip to content
Snippets Groups Projects
Commit 702ab566 authored by psychocrypt's avatar psychocrypt
Browse files

fix shadowed variable

A redefinition of a variable in a local scope avoid that the intensity is rounded to a multiple of the work size.
parent cfad5a51
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment