vSMC
vSMC: Scalable Monte Carlo
Public Member Functions | List of all members
vsmc::CLError Class Reference

OpenCL exception. More...

#include <vsmc/opencl/cl_error.hpp>

Public Member Functions

 CLError ()
 
 CLError (cl_int status)
 
 CLError (const ::cl::Error &err)
 
 CLError (cl_int status, const char *msg)
 
 CLError (cl_int status, const std::string &msg)
 
cl_int err () const
 
cl_int status () const
 

Detailed Description

OpenCL exception.

This exception class differs from cl::Error mostly in that the error string is appended by the macro name of the error code. Therefore, when calling what, one might saw clKernelSetArg:CL_INVALID_MEM_OBJECT etc., instead of simply clKernelSetArg.

Definition at line 137 of file cl_error.hpp.

Constructor & Destructor Documentation

vsmc::CLError::CLError ( )
inline

Definition at line 141 of file cl_error.hpp.

vsmc::CLError::CLError ( cl_int  status)
inlineexplicit

Definition at line 145 of file cl_error.hpp.

vsmc::CLError::CLError ( const ::cl::Error &  err)
inlineexplicit

Definition at line 149 of file cl_error.hpp.

vsmc::CLError::CLError ( cl_int  status,
const char *  msg 
)
inline

Definition at line 153 of file cl_error.hpp.

vsmc::CLError::CLError ( cl_int  status,
const std::string &  msg 
)
inline

Definition at line 157 of file cl_error.hpp.

Member Function Documentation

cl_int vsmc::CLError::err ( ) const
inline

Definition at line 161 of file cl_error.hpp.

cl_int vsmc::CLError::status ( ) const
inline

Definition at line 163 of file cl_error.hpp.