Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ check_opencl_error()

void stan::math::check_opencl_error ( const char *  function,
const cl::Error &  e 
)
inline

Throws the domain error with specifying the OpenCL error that occurred.

It outputs the OpenCL errors that are specified in OpenCL 2.0. If no matching error number is found, it throws the error with the number.

Parameters
functionthe name of the function where the error occurred
eThe error number

Definition at line 23 of file check_opencl.hpp.