SG++
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

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

References elements, initialized, and sizeofType.

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

References freeBuffer().

Member Function Documentation

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

References platformBufferList.

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

References initialized.

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

Member Data Documentation

size_t sgpp::base::OCLClonedBufferMultiPlatform::elements
std::shared_ptr<OCLManagerMultiPlatform> sgpp::base::OCLClonedBufferMultiPlatform::manager
std::map<cl_platform_id, cl_mem*> sgpp::base::OCLClonedBufferMultiPlatform::platformBufferList
size_t sgpp::base::OCLClonedBufferMultiPlatform::sizeofType

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