Static Public Member Functions

error_checker< T > Struct Template Reference

An error reporting class. Template argument is used to avoid problems with external linkage. More...

#include <error.hpp>

Static Public Member Functions

static void raise_exception (cl_int err)
 Trows exceptions that reflect OpenCL error codes.
static void checkError (cl_int err, const std::string &file, const std::string &func, int line)
 Checks whether an OpenCL error has occured.

Detailed Description

template<typename T>
struct viennacl::ocl::error_checker< T >

An error reporting class. Template argument is used to avoid problems with external linkage.

Do not use this class directly, use the macro CL_ERROR_CHECK instead.

Template Parameters:
T Useless. Helps to avoid troubles with external linkage of namespace functions.

Member Function Documentation

static void checkError ( cl_int  err,
const std::string &  file,
const std::string &  func,
int  line 
) [inline, static]

Checks whether an OpenCL error has occured.

Do not use this function directly, use the macro CL_ERROR_CHECK instead.

static void raise_exception ( cl_int  err  )  [inline, static]

Trows exceptions that reflect OpenCL error codes.


The documentation for this struct was generated from the following file: