Skip to content
Snippets Groups Projects
Unverified Commit b73401b7 authored by fireice-uk's avatar fireice-uk Committed by GitHub
Browse files

Merge pull request #2207 from psychocrypt/fix-cngpuOpenClCompMode

OpencL: fix cn_gpu
parents f9ad522b f14528ba
No related branches found
No related tags found
No related merge requests found
......@@ -201,7 +201,7 @@ __kernel void JOIN(cn1_cn_gpu,ALGO)(__global int *lpad_in, __global int *spad, u
const uint gIdx = getIdx();
#if(COMP_MODE==1)
if(gIdx < Threads)
if(gIdx/16 >= numThreads)
return;
#endif
......@@ -368,16 +368,11 @@ __kernel void JOIN(cn0_cn_gpu,ALGO)(__global ulong *input, __global int *Scratch
barrier(CLK_LOCAL_MEM_FENCE);
#if(COMP_MODE==1)
// do not use early return here
if(gIdx < Threads)
#endif
for(ulong i = get_local_id(1); i < MEMORY / 512; i += get_local_size(1))
{
for(ulong i = get_local_id(1); i < MEMORY / 512; i += get_local_size(1))
{
generate_512(i, State, (__global ulong*)((__global uchar*)Scratchpad + i*512));
}
generate_512(i, State, (__global ulong*)((__global uchar*)Scratchpad + i*512));
}
}
)==="
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