cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

opencl_JEDI
Journeyman III

error -30 clbuildprogram

Hi

I use clBuildprogram to build my code, and I get an error -30, I print this error using this code:

shrLog(" Error %i build program !!!\n\n", ciErrNum);

How can I get the real error name,
like CL_INVALID_PROGRAM for example.

Thanks

0 Likes
2 Replies
omkaranathan
Adept I

-30 is CL_INVALID_VALUE which can occur in clBuildProgram due to different reasons.

1. if device_list is NULL and num_devices is greater than zero, or if
device_list is not NULL and num_devices is zero.
2. if pfn_notify is NULL but user_data is not NULL

Could you post your source code?

 

0 Likes

Thanks,

it was a numberdevice problem, I solved it

0 Likes