BioDynaMo  v1.05.117-b1949764
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...
 
std::vector< bool > * GetFp64Support ()
 
void SelectGpu (int gpu)
 
bool HasSupportForDouble ()
 
void DisableSupportForDouble ()
 Disable support for double-precision floating point operations. More...
 
void EnableSupportForDouble ()
 Enable support for double-precision floating point operations. 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 261 of file opencl_state.cc.

◆ DisableSupportForDouble()

void bdm::OpenCLState::DisableSupportForDouble ( )

Disable support for double-precision floating point operations.

◆ EnableSupportForDouble()

void bdm::OpenCLState::EnableSupportForDouble ( )

Enable support for double-precision floating point operations.

◆ GetErrorString()

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

Definition at line 260 of file opencl_state.cc.

◆ GetFp64Support()

std::vector<bool>* bdm::OpenCLState::GetFp64Support ( )

◆ GetOpenCLCommandQueue()

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

Returns the OpenCL command queue.

Definition at line 255 of file opencl_state.cc.

◆ GetOpenCLContext()

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

Returns the OpenCL Context.

Definition at line 254 of file opencl_state.cc.

◆ GetOpenCLDeviceList()

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

Returns the OpenCL device (GPU) list.

Definition at line 256 of file opencl_state.cc.

◆ GetOpenCLProgramList()

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

Returns the OpenCL program (kernel) list.

Definition at line 257 of file opencl_state.cc.

◆ HasSupportForDouble()

bool bdm::OpenCLState::HasSupportForDouble ( )

Returns whether or not a GPU without support for double-precision was found

◆ SelectGpu()

void bdm::OpenCLState::SelectGpu ( int  gpu)

Member Data Documentation

◆ impl_

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

Definition at line 74 of file opencl_state.h.


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