I am using opencl and when trying to execute my kernel an exception is thrown:
what(): clEnqueueNDRangeKernel
err(): -1000
The notify function gives:
Unknown error executing CL_COMMAND_NDRANGE_KERNEL on GeForce GTX 560 (Device 0).
I encountered this error some months ago and posted it along with the solution in the NVidia forums (to find it when searching), but unfortunately the forums are taken down for now and I forgot the solution. So if you know the source of the error (or can somehow get it from the NVidia forums) please post it here.
Finally I remembered the source of the problem:
The kernel that
clEnqueueNDRangeKernelfailed on, has buffers as arguments that are shared between OpenCL and OpenGL. I just forgot toclEnqueueAcquireGLObjectssome of these buffers.It is a bit disappointing that the error is not more specific about the problem (like saying: “Accessing an unacquired OpenGL buffer!”).