SG++-Doxygen-Documentation
sgpp::base::OCLClonedBufferMultiPlatform Class Reference

#include <OCLClonedBufferMultiPlatform.hpp>

Public Member Functions

void freeBuffer ()
 
cl_mem * getBuffer (cl_platform_id platformId, size_t deviceIndex)
 
void initializeBuffer (void *initialValues, size_t sizeofType, size_t elements)
 
bool isInitialized ()
 
 OCLClonedBufferMultiPlatform (std::shared_ptr< OCLManagerMultiPlatform > manager)
 
void readFromBuffer (void *hostData, size_t *offsets=nullptr, size_t *ranges=nullptr)
 
void writeToBuffer (void *hostData, size_t *offsets=nullptr)
 
 ~OCLClonedBufferMultiPlatform ()
 

Public Attributes

size_t elements
 
bool initialized
 
std::shared_ptr< OCLManagerMultiPlatformmanager
 
std::map< cl_platform_id, cl_mem * > platformBufferList
 
size_t sizeofType
 

Constructor & Destructor Documentation

◆ OCLClonedBufferMultiPlatform()

sgpp::base::OCLClonedBufferMultiPlatform::OCLClonedBufferMultiPlatform ( std::shared_ptr< OCLManagerMultiPlatform manager)
explicit

References elements, initialized, and sizeofType.

◆ ~OCLClonedBufferMultiPlatform()

sgpp::base::OCLClonedBufferMultiPlatform::~OCLClonedBufferMultiPlatform ( )

References freeBuffer().

Member Function Documentation

◆ freeBuffer()

◆ getBuffer()

cl_mem * sgpp::base::OCLClonedBufferMultiPlatform::getBuffer ( cl_platform_id  platformId,
size_t  deviceIndex 
)

References platformBufferList.

◆ initializeBuffer()

void sgpp::base::OCLClonedBufferMultiPlatform::initializeBuffer ( void *  initialValues,
size_t  sizeofType,
size_t  elements 
)

◆ isInitialized()

bool sgpp::base::OCLClonedBufferMultiPlatform::isInitialized ( )

References initialized.

◆ readFromBuffer()

void sgpp::base::OCLClonedBufferMultiPlatform::readFromBuffer ( void *  hostData,
size_t *  offsets = nullptr,
size_t *  ranges = nullptr 
)

◆ writeToBuffer()

void sgpp::base::OCLClonedBufferMultiPlatform::writeToBuffer ( void *  hostData,
size_t *  offsets = nullptr 
)

Member Data Documentation

◆ elements

size_t sgpp::base::OCLClonedBufferMultiPlatform::elements

◆ initialized

◆ manager

std::shared_ptr<OCLManagerMultiPlatform> sgpp::base::OCLClonedBufferMultiPlatform::manager

◆ platformBufferList

std::map<cl_platform_id, cl_mem*> sgpp::base::OCLClonedBufferMultiPlatform::platformBufferList

◆ sizeofType

size_t sgpp::base::OCLClonedBufferMultiPlatform::sizeofType

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