Voxel
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
Classes | Namespaces | Macros
opencl_exception.h File Reference

Contains OpenCL::Exception class. More...

#include "settings.h"
#include <CL/cl.h>
#include <string>
#include <stdexcept>

Go to the source code of this file.

Classes

struct  OpenCL::Exception
 OpenCL exception class. More...

Namespaces

namespace  OpenCL
 Contains State, Program, Converter and Exception classes.

Macros

#define OPENCL_EXCEPTION_H
#define THROW_OPENCL_EXCEPTION(what, result)   throw ::OpenCL::Exception( __FILE__, __LINE__, ( what ), ( result ) )
 Throws an OpenCL::Exception labeled with the file, line, string what and OpenCL error code hResult.
#define CHECK_OPENCL(what)
 Evaluates what, and if it returns an OpenCL failure code, throws an OpenCL::Exception.

Detailed Description

Contains OpenCL::Exception class.

Definition in file opencl_exception.h.

Macro Definition Documentation

#define CHECK_OPENCL (   what)
Value:
{ \
cl_int result = ( what ); \
if ( result != CL_SUCCESS ) \
THROW_OPENCL_EXCEPTION( #what, result ); \
}

Evaluates what, and if it returns an OpenCL failure code, throws an OpenCL::Exception.

Definition at line 44 of file opencl_exception.h.