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

#include <opencl_state.h>

Classes

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 ( )
default

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 opencl_state.cc.

◆ GetErrorString()

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

Definition at line 239 of file opencl_state.cc.

◆ GetOpenCLCommandQueue()

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

Returns the OpenCL command queue.

Definition at line 234 of file opencl_state.cc.

◆ GetOpenCLContext()

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

Returns the OpenCL Context.

Definition at line 233 of file opencl_state.cc.

◆ GetOpenCLDeviceList()

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

Returns the OpenCL device (GPU) list.

Definition at line 235 of file opencl_state.cc.

◆ GetOpenCLProgramList()

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

Returns the OpenCL program (kernel) list.

Definition at line 236 of file opencl_state.cc.

Member Data Documentation

◆ impl_

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

Definition at line 60 of file opencl_state.h.


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