PDA

View Full Version : Error codes: clSetKernelArg



akhal
07-20-2011, 04:44 AM
Hello
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?

david.garcia
07-20-2011, 03:09 PM
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 (http://www.khronos.org/registry/cl/api/1.1/cl.h). For example, -1 would be CL_DEVICE_NOT_FOUND.

akhal
07-21-2011, 06:30 AM
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 (http://www.khronos.org/registry/cl/api/1.1/cl.h). For example, -1 would be CL_DEVICE_NOT_FOUND.
Okay thank you. I solved the problem anyway.

apfelsinnens
09-15-2011, 01:11 PM
I have the same problem.
How did you solve the problem?