hey guys
i’m a new boy in opencl , when i run my program i take “clEnqueueNDRangeKernel, error code -54” i check “clSetKernelArg” out, and everything seems right, i don’t know what else to do??
this is some of my relevant code:
What you do is look up the error code in the opencl header file, i.e. in CL/cl.h. e.g. -54 is CL_INVALID_WORK_GROUP_SIZE
Then once you know the name of the error code, you go to the manual page of (or specification section for) the function that is returning it (i.e. clEnqueueNDRangeKernel), and see what conditions will cause that error. The error codes are exhaustively documented and in many cases (such as this one) self explanatory.