Go to the documentation of this file.
3 #ifndef OPENCL_EXCEPTION_H
4 #define OPENCL_EXCEPTION_H
20 #if ( SETTING_OPENCL != 0 )
39 #define THROW_OPENCL_EXCEPTION( what, result ) \
40 throw ::OpenCL::Exception( __FILE__, __LINE__, ( what ), ( result ) )
44 #define CHECK_OPENCL( what ) { \
45 cl_int result = ( what ); \
46 if ( result != CL_SUCCESS ) \
47 THROW_OPENCL_EXCEPTION( #what, result ); \
81 Exception(
char const*
const file,
unsigned int const line, std::string
const&
what, cl_int
const result );
87 virtual const char*
what()
const throw();
103 #endif // SETTING_OPENCL
108 #endif // OPENCL_EXCEPTION_H