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

#include <OCLClonedBuffer.hpp>

Public Member Functions

void freeBuffer ()
 
cl_mem * getBuffer (size_t deviceNumber)
 
void initializeBuffer (void *initialValues, size_t sizeofType, size_t elements)
 
bool isInitialized ()
 
 OCLClonedBuffer (std::shared_ptr< OCLManager > manager)
 
void readFromBuffer (void *hostData, size_t *offsets=nullptr, size_t *ranges=nullptr)
 
void writeToBuffer (void *hostData, size_t *offsets=nullptr)
 
 ~OCLClonedBuffer ()
 

Public Attributes

cl_mem * bufferList
 
size_t elements
 
bool initialized
 
std::shared_ptr< OCLManagermanager
 
size_t sizeofType
 

Constructor & Destructor Documentation

◆ OCLClonedBuffer()

sgpp::base::OCLClonedBuffer::OCLClonedBuffer ( std::shared_ptr< OCLManager manager)
explicit

◆ ~OCLClonedBuffer()

sgpp::base::OCLClonedBuffer::~OCLClonedBuffer ( )

References freeBuffer().

Member Function Documentation

◆ freeBuffer()

◆ getBuffer()

cl_mem * sgpp::base::OCLClonedBuffer::getBuffer ( size_t  deviceNumber)

◆ initializeBuffer()

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

◆ isInitialized()

bool sgpp::base::OCLClonedBuffer::isInitialized ( )

◆ readFromBuffer()

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

References python.statsfileInfo::i, and manager.

◆ writeToBuffer()

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

References python.statsfileInfo::i, and manager.

Member Data Documentation

◆ bufferList

cl_mem* sgpp::base::OCLClonedBuffer::bufferList

◆ elements

size_t sgpp::base::OCLClonedBuffer::elements

◆ initialized

◆ manager

std::shared_ptr<OCLManager> sgpp::base::OCLClonedBuffer::manager

◆ sizeofType

size_t sgpp::base::OCLClonedBuffer::sizeofType

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