If I have something like:
err = clEnqueueReadBuffer(cmdQueue, output, CL_TRUE, 0, sizeof(float) * data_sz, &results, 0, NULL, NULL);
I d like to do:
if (err != CL_SUCCESS){
perror("Read Failed!");
}
But the error constants like "CL_HOST_OUT_OF_MEMORY" and the like are (understandably) not known to perror().
I could go around grepping the .h files associated with opencl, but that is not an ideal solution. I m open to any other convenient ways of tracking down the error numbers. I m on OSX Snow Leopard (Including that just in case, but I don t think it s relevant)