Reputation: 61
Say I have the following code:
size_t globalSize = 4294967295; // (2^(32))-1
clEnqueueNDRangeKernel(queue, kernel, 1, NULL, &globalSize, 0, 0, NULL, NULL);
Doesn't this mean that I want the kernel to be executed 4294967295 times and that OpenCL will decide the most efficient workgroup size?
Upvotes: 2
Views: 509
Reputation: 23428
Essentially yes, although you may want to note a few things:
&globalSize
is a NULL
pointer, not the integer value 0, as the parameter is declared as `const size_t *local_work_size.Upvotes: 2