GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
opencl/utils.h File Reference
#include <iostream>
#include "../../../../share/genn/backends/opencl/cl2.hpp"
#include <plog/Log.h>

Go to the source code of this file.

Namespaces

 CodeGenerator
 Helper class for generating code - automatically inserts brackets, indents etc.
 
 CodeGenerator::OpenCL
 
 CodeGenerator::OpenCL::Utils
 

Macros

#define CHECK_OPENCL_ERRORS(call)
 
#define GEN_CL_ERROR_CASE(ERR)   case ERR: return #ERR
 

Functions

const char * CodeGenerator::OpenCL::Utils::clGetErrorString (cl_int error)
 

Macro Definition Documentation

◆ 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