If I have something like:
err = clEnqueueReadBuffer(cmdQueue, output, CL_TRUE, 0, sizeof(float) * data_sz, &results, 0, NULL, NULL);
I would like to:
if (err != CL_SUCCESS){ perror("Read Failed!"); }
But error constants, such as "CL_HOST_OUT_OF_MEMORY", etc., (understandably) are not known perror ().
I could get around the grepping .h files associated with opencl, but this is not an ideal solution. I am open to any other convenient way to track error numbers. I'm on OSX Snow Leopard (including this just in case, but I don't think this is relevant)
source share