HOPS
HOPS class reference
Classes | Namespaces | Macros
MHO_OpenCLInterface.hh File Reference
#include "MHO_OpenCLConfig.hh"
#include "MHO_Message.hh"
#include "MHO_TemplateTypenameDeduction.hh"
#include "MHO_OpenCLHeaderWrapper.hh"
#include <complex>
#include <map>
#include <string>
#include <vector>
#include <iostream>

Go to the source code of this file.

Classes

class  hops::MHO_OpenCLInterface
 
struct  MHO_OpenCLTypeMap< XValueType >
 
struct  MHO_OpenCLTypeMap< float >
 
struct  MHO_OpenCLTypeMap< std::complex< float > >
 

Namespaces

 hops
 

Macros

#define __CL_ENABLE_EXCEPTIONS
 
#define CL_ERROR_CATCH
 
#define CL_ERROR_TRY
 
#define CL_TYPE   cl_float
 
#define CL_TYPE16   cl_float16
 
#define CL_TYPE2   cl_float2
 
#define CL_TYPE4   cl_float4
 
#define CL_TYPE8   cl_float8
 
#define CL_VECTOR_TYPE   std::vector
 
#define ENFORCE_CL_FINISH
 
#define USE_CL_ERROR_TRY_CATCH
 

Class Documentation

◆ MHO_OpenCLTypeMap

struct MHO_OpenCLTypeMap

template<typename XValueType>
struct MHO_OpenCLTypeMap< XValueType >

Class Members
typedef XValueType mapped_type

◆ MHO_OpenCLTypeMap< float >

struct MHO_OpenCLTypeMap< float >
Class Members
typedef CL_TYPE mapped_type

◆ MHO_OpenCLTypeMap< std::complex< float > >

struct MHO_OpenCLTypeMap< std::complex< float > >
Class Members
typedef CL_TYPE2 mapped_type

Macro Definition Documentation

◆ __CL_ENABLE_EXCEPTIONS

#define __CL_ENABLE_EXCEPTIONS

◆ CL_ERROR_CATCH

#define CL_ERROR_CATCH
Value:
} \
catch(cl::Error error) \
{ \
std::cout << "OpenCL Exception caught: " << std::endl; \
std::cout << __FILE__ << ":" << __LINE__ << std::endl; \
std::cout << error.what() << "(" << error.err() \
<< ") = " << MHO_OpenCLInterface::GetInstance()->GetErrorMessage(error.err()) << std::endl; \
std::exit(1); \
}

◆ CL_ERROR_TRY

#define CL_ERROR_TRY
Value:
try \
{

◆ CL_TYPE

#define CL_TYPE   cl_float

◆ CL_TYPE16

#define CL_TYPE16   cl_float16

◆ CL_TYPE2

#define CL_TYPE2   cl_float2

◆ CL_TYPE4

#define CL_TYPE4   cl_float4

◆ CL_TYPE8

#define CL_TYPE8   cl_float8

◆ CL_VECTOR_TYPE

#define CL_VECTOR_TYPE   std::vector

◆ ENFORCE_CL_FINISH

#define ENFORCE_CL_FINISH

◆ USE_CL_ERROR_TRY_CATCH

#define USE_CL_ERROR_TRY_CATCH