36 #include <OpenCL/cl.h>
46 #define CL_ERR_STR(err) case err: return #err
68 CL_ERR_STR(CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST);
83 CL_ERR_STR(CL_INVALID_IMAGE_FORMAT_DESCRIPTOR);
112 CL_ERR_STR(CL_INVALID_DEVICE_PARTITION_COUNT);
122 if (err != CL_SUCCESS) {
124 fprintf(stderr,
"%s in %s:%d \n", err_str, fname, line);
void opencl_check(const char *fname, const int line, const cl_int err)
const char * clGetError(const cl_int err)