SG++
sgpp::base::OCLZeroCopyBuffer Class Reference

#include <OCLZeroCopyBuffer.hpp>

Public Member Functions

void freeBuffer ()
 
cl_mem * getBuffer (size_t deviceNumber)
 
void * getMappedBuffer ()
 
void initializeBuffer (void *initialValues, size_t sizeofType, size_t elements, bool readOnly)
 
bool isInitialized ()
 
 OCLZeroCopyBuffer (std::shared_ptr< OCLManager > manager)
 
void readFromBuffer (void *hostData)
 
void writeToBuffer (void *hostData)
 
 ~OCLZeroCopyBuffer ()
 

Constructor & Destructor Documentation

sgpp::base::OCLZeroCopyBuffer::OCLZeroCopyBuffer ( std::shared_ptr< OCLManager manager)
explicit
sgpp::base::OCLZeroCopyBuffer::~OCLZeroCopyBuffer ( )

References freeBuffer().

Member Function Documentation

void sgpp::base::OCLZeroCopyBuffer::freeBuffer ( )

Referenced by ~OCLZeroCopyBuffer().

cl_mem * sgpp::base::OCLZeroCopyBuffer::getBuffer ( size_t  deviceNumber)
void* sgpp::base::OCLZeroCopyBuffer::getMappedBuffer ( )
void sgpp::base::OCLZeroCopyBuffer::initializeBuffer ( void *  initialValues,
size_t  sizeofType,
size_t  elements,
bool  readOnly 
)

References writeToBuffer().

bool sgpp::base::OCLZeroCopyBuffer::isInitialized ( )
void sgpp::base::OCLZeroCopyBuffer::readFromBuffer ( void *  hostData)
void sgpp::base::OCLZeroCopyBuffer::writeToBuffer ( void *  hostData)

Referenced by initializeBuffer().


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