PDA

View Full Version : error -30 buildprogram



opencl_JEDI
03-08-2010, 08:31 AM
Hi I use clBuildprogram to build my code,
and I get an error that I print like this

shrLog(" Error %i build program !!!\n\n", ciErrNum);
But I get error -30, how can I get the real error name,
CL_INVALID_PROGRAM or CL_INVALID_VALUE for exemple.

Thanks

Kratzy974
03-08-2010, 12:41 PM
I made up a std::map with the id and the string, and use this whenever I have an error. Easy to make with some copy/paste from the cl.h