Im trying to include OpenCL in my Application/Bundle and i’ve ran into this issue:
I tried to fix this and came to several hints what the Problem might be.
But first of all the general situation:
The Error is caused when launching a kernel:
error=clEnqueueNDRangeKernel(cq, kernels[kernelId], 3, NULL, gws, lws, 0, NULL, NULL);
Work size specs:
gws (globalWorkSize) = [64,64,64]
lws (localWorkSize) = [8,8,8]
CL_DEVICE_MAX_WORK_GROUP_SIZE = 1024
If I run the kernel without specifying the local work size following happens:
- It executes without an error
- global size is set to [64,1,1] due to get_local_size(0) = 64, get_local_size(1) = 1 and get_local_size(2) = 1
Do you have an Idea why i can’t declare the local work size and get the desired result?
I hope my question is stated clearly enough.
Every help is much appreciated!