7 #include "../../../../share/genn/backends/opencl/cl2.hpp" 13 #define CHECK_OPENCL_ERRORS(call) \ 15 cl_int error = call; \ 16 if (error != CL_SUCCESS) { \ 17 LOGE_BACKEND << __FILE__ << ": " << __LINE__ << ": opencl error " << error << ": " << clGetErrorString(error); \ 34 #define GEN_CL_ERROR_CASE(ERR) case ERR: return #ERR 99 default:
return "Unknown OpenCL error";
101 #undef GEN_CL_ERROR_CASE Helper class for generating code - automatically inserts brackets, indents etc.
Definition: backendBase.h:30
const char * clGetErrorString(cl_int error)
Definition: opencl/utils.h:32
Definition: gennUtils.h:30
#define GEN_CL_ERROR_CASE(ERR)