#include <iostream>
#include "../../../../share/genn/backends/opencl/cl2.hpp"
#include <plog/Log.h>
Go to the source code of this file.
◆ CHECK_OPENCL_ERRORS
#define CHECK_OPENCL_ERRORS |
( |
|
call | ) |
|
Value:{ \
cl_int error = call; \
if (error != CL_SUCCESS) { \
LOGE_BACKEND << __FILE__ <<
": " << __LINE__ <<
": opencl error " << error <<
": " <<
clGetErrorString(error); \
exit(EXIT_FAILURE); \
} \
}
const char * clGetErrorString(cl_int error)
Definition: opencl/utils.h:32
◆ GEN_CL_ERROR_CASE
#define GEN_CL_ERROR_CASE |
( |
|
ERR | ) |
case ERR: return #ERR |