Skip to content

Commit

Permalink
Also split if the resulting group size is equal to the minimum group …
Browse files Browse the repository at this point in the history
…size
  • Loading branch information
new2f7 committed Dec 13, 2019
1 parent e2eaf36 commit 24b4db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CL/clEnqueueNDRangeKernel.c
Expand Up @@ -398,7 +398,7 @@ if (local_##coord > 1) \
/* Only proceed if splitting wouldn't bring us below the minimum
* group size */
while (((splits = ncus / (nwg_x * nwg_y * nwg_z)) > 1) &&
(local_x * local_y * local_z > splits * min_group_size))
(local_x * local_y * local_z >= splits * min_group_size))
{
/* Very simple splitting approach: find a dimension divisible by
* split, and lacking that divide by something less, if possible.
Expand Down

0 comments on commit 24b4db4

Please sign in to comment.