BioDynaMo  v1.03.58-27764645
Classes | Public Member Functions | Private Attributes | List of all members
bdm::OpenCLState Class Reference

#include <opencl_state.h>


struct  OpenCLImpl
struct  OpenCLImplDestructor

Public Member Functions

 OpenCLState ()
cl::Context * GetOpenCLContext ()
 Returns the OpenCL Context. More...
cl::CommandQueue * GetOpenCLCommandQueue ()
 Returns the OpenCL command queue. More...
std::vector< cl::Device > * GetOpenCLDeviceList ()
 Returns the OpenCL device (GPU) list. More...
std::vector< cl::Program > * GetOpenCLProgramList ()
 Returns the OpenCL program (kernel) list. More...
const char * GetErrorString (int error)
int ClAssert (int const code, char const *const file, int const line, bool const abort)

Private Attributes

std::unique_ptr< OpenCLImpl, OpenCLImplDestructorimpl_

Detailed Description

Definition at line 33 of file opencl_state.h.

Constructor & Destructor Documentation

◆ OpenCLState()

bdm::OpenCLState::OpenCLState ( )

Member Function Documentation

◆ ClAssert()

int bdm::OpenCLState::ClAssert ( int const  code,
char const *const  file,
int const  line,
bool const  abort 

Definition at line 240 of file

◆ GetErrorString()

const char * bdm::OpenCLState::GetErrorString ( int  error)

Definition at line 239 of file

◆ GetOpenCLCommandQueue()

cl::CommandQueue * bdm::OpenCLState::GetOpenCLCommandQueue ( )

Returns the OpenCL command queue.

Definition at line 234 of file

◆ GetOpenCLContext()

cl::Context * bdm::OpenCLState::GetOpenCLContext ( )

Returns the OpenCL Context.

Definition at line 233 of file

◆ GetOpenCLDeviceList()

std::vector< cl::Device > * bdm::OpenCLState::GetOpenCLDeviceList ( )

Returns the OpenCL device (GPU) list.

Definition at line 235 of file

◆ GetOpenCLProgramList()

std::vector< cl::Program > * bdm::OpenCLState::GetOpenCLProgramList ( )

Returns the OpenCL program (kernel) list.

Definition at line 236 of file

Member Data Documentation

◆ impl_

std::unique_ptr<OpenCLImpl, OpenCLImplDestructor> bdm::OpenCLState::impl_

Definition at line 60 of file opencl_state.h.

The documentation for this class was generated from the following files: