vsfan

How can I look up error code?

Discussion created by vsfan on Feb 23, 2010
Latest reply on Feb 23, 2010 by FangQ
Error code lookup for OpenCL using AMD stream SDK

Hi,

How can I look up the error code returned by the opencl function calls?

Now I am trying to figure out an error code "-4", returned by the following code (ERR_REPORT is a defined macro to show the error, if there is any),

 

 

str_fngapdistD = clCreateBuffer(context, CL_MEM_READ_WRITE, nDistSize, NULL, &err);ERR_REPORT

str_fhgapdistD = clCreateBuffer(context, CL_MEM_READ_WRITE, nDistSize, NULL, &err);ERR_REPORT

str_fvgapdistD = clCreateBuffer(context, CL_MEM_READ_WRITE, nDistSize, NULL, &err);ERR_REPORT

The first call is successful, the following two failed and returned an error code "-4", I did not find the matching OpenCL error easily, could anyone here help me with that error code?
Thanks!
Yours,
Yang


Outcomes