I’m just getting my feet wet with OpenCL, but I’m a little stumped with this.
I’m trying to offload some image sampling to the GPU in a fairly monolithic application that I work on, and I’m getting this return code when I try to enqueue my kernel even if the implementation doesn’t DO anything.
The documentation says this can mean just about anything, but suggests:
Too many work items for the kernel
Too many image parameters
Too many sampler parameters
Considering that I still get this when using clEnqueueTask, and the kernel only takes one image and one sampler, I’m fairly confident it’s not any of those. That would only require a single work item, and according to clGetKernelWorkGroupInfo, this device should be able to handle 512 work items with the register requirements of this kernel.
Someone else on this forum suggested that you can get this return code if you specify an incorrect name for your kernel in clCreateKernel. I was really hoping that would be my problem, but sadly I had typed it correctly the first time.
Does anyone have any helpful insight, or suggestions how to tackle this problem? At this point, I’ll entertain even inane suggestions, so please fire away.