1 #ifndef jb_clfft_error_hpp 2 #define jb_clfft_error_hpp 4 #include <boost/compute/exception/opencl_error.hpp> 30 static std::string
to_string(cl_int error);
34 std::string
to_what(cl_int error,
char const* msg);
46 if (err == CL_SUCCESS) {
55 #endif // jb_cl_error_hpp void check_error_code(cl_int err, char const *msg)
Check in an OpenCL error code is really an error and raise an exception if so.
std::string to_what(cl_int error, char const *msg)
Generate a what() string given an error code and message.
~clfft_error() noexcept
Destructor.
static std::string to_string(cl_int error)
Convert error code to a string.
cl_int error_code() const noexcept
Returns the numeric error code.
clfft_error(cl_int error, char const *msg)
Constructor from a clFFT error code and a message.
The top-level namespace for the JayBeams library.