Browse Source

fix non-power of 2 opencl workgroup size bug.

cl-refactor
Genoil 9 years ago
parent
commit
a8404832ce
  1. 2
      libethash-cl/ethash_cl_miner_kernel.cl

2
libethash-cl/ethash_cl_miner_kernel.cl

@ -263,7 +263,7 @@ __kernel void ethash_search(
// Threads work together in this phase in groups of 8.
uint const thread_id = gid & 7;
uint const hash_id = (gid & (GROUP_SIZE - 1)) >> 3;
uint const hash_id = (gid % GROUP_SIZE) >> 3;
for (int i = 0; i < THREADS_PER_HASH; i++)
{

Loading…
Cancel
Save