Error codes: clSetKernelArg

I got error code 1 returned by clSetKernelArg() function; I see error names but I dont know how they all map to these error codes?

That doesn’t look like a valid error code from clSetKernelArg(). Could it be returning -1 instead?

To match error codes with mnemonics, look in the header file cl.h. For example, -1 would be CL_DEVICE_NOT_FOUND.

Okay thank you. I solved the problem anyway.

I have the same problem.
How did you solve the problem?