SG++
sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T > Class Template Reference

#include <OperationMultiEvalStreamingModOCLUnified.hpp>

Inheritance diagram for sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >:
sgpp::base::OperationMultipleEval

Public Member Functions

double getDuration ()
 
void mult (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result) override
 Multiplication of \(B^T\) with vector \(\alpha\). More...
 
void multTranspose (sgpp::base::DataVector &source, sgpp::base::DataVector &result) override
 Multiplication of \(B\) with vector \(\alpha\). More...
 
 OperationMultiEvalStreamingModOCLUnified (base::Grid &grid, base::DataMatrix &dataset, std::shared_ptr< base::OCLManagerMultiPlatform > manager, std::shared_ptr< base::OCLOperationConfiguration > parameters)
 
void prepare () override
 Used for kernel-specific setup like special data structures that are defined from the current state of the grid. More...
 
 ~OperationMultiEvalStreamingModOCLUnified ()
 
- Public Member Functions inherited from sgpp::base::OperationMultipleEval
void eval (DataVector &alpha, DataVector &result)
 Evaluate multiple datapoints with the specified grid. More...
 
virtual std::string getImplementationName ()
 Name of this implementation of the operation. More...
 
virtual void mult (DataVector &alpha, DataVector &result, size_t startIndexData, size_t endIndexData)
 Multiplication of \(B^T\) with vector \(\alpha\). More...
 
virtual void multTranspose (DataVector &source, DataVector &result, size_t startIndexGrid, size_t endIndexGrid)
 Multiplication of \(B\) with vector \(\alpha\). More...
 
 OperationMultipleEval (sgpp::base::Grid &grid, DataMatrix &dataset)
 Constructor. More...
 
virtual ~OperationMultipleEval ()
 Destructor. More...
 

Protected Attributes

size_t datasetSizePadded
 
size_t datasetSizeUnpadded
 
std::vector< std::shared_ptr< base::OCLDevice > > devices
 
size_t dims
 
double duration
 
size_t gridSizePadded
 
size_t gridSizeUnpadded
 
std::vector< T > index
 
std::vector< T > kernelDataset
 
std::vector< T > level
 
std::shared_ptr< base::OCLManagerMultiPlatformmanager
 
std::vector< StreamingModOCLUnified::KernelMult< T > > multKernels
 
std::vector< StreamingModOCLUnified::KernelMultTranspose< T > > multTransposeKernels
 
sgpp::base::SGppStopwatch myTimer
 Timer object to handle time measurements. More...
 
size_t overallDataBlockingSize
 
size_t overallGridBlockingSize
 
std::shared_ptr< base::OCLOperationConfigurationparameters
 
sgpp::base::DataMatrix preparedDataset
 
std::shared_ptr< sgpp::base::QueueLoadBalancerOpenMPqueueLoadBalancerMult
 
std::shared_ptr< sgpp::base::QueueLoadBalancerOpenMPqueueLoadBalancerMultTrans
 
std::vector< T > scaling
 
base::GridStoragestorage
 
bool verbose
 
- Protected Attributes inherited from sgpp::base::OperationMultipleEval
DataMatrixdataset
 
Gridgrid
 
bool isPrepared
 

Constructor & Destructor Documentation

Member Function Documentation

template<typename T>
void sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::mult ( sgpp::base::DataVector alpha,
sgpp::base::DataVector result 
)
inlineoverridevirtual
template<typename T>
void sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::prepare ( )
inlineoverridevirtual

Used for kernel-specific setup like special data structures that are defined from the current state of the grid.

This function is by default called with each "mult()", "multTranspose()" or evaluation operation and can be ignored from an external perspective. This is not overridden by every kernel.

Reimplemented from sgpp::base::OperationMultipleEval.

References sgpp::base::OperationMultipleEval::dataset, sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::datasetSizePadded, sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::dims, sgpp::base::HashGridPoint::get(), sgpp::base::HashGridStorage::getDimension(), sgpp::datadriven::StreamingModOCLUnified::Configuration::getKernelName(), sgpp::base::DataMatrix::getNcols(), sgpp::base::DataMatrix::getNrows(), sgpp::base::HashGridStorage::getPoint(), sgpp::base::DataMatrix::getRow(), sgpp::base::HashGridStorage::getSize(), sgpp::base::Grid::getStorage(), sgpp::base::OperationMultipleEval::grid, sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::gridSizePadded, sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::multTransposeKernels, sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::overallGridBlockingSize, sgpp::base::DataMatrix::resize(), and sgpp::base::DataMatrix::setRow().

Referenced by sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::mult(), sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::multTranspose(), and sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::OperationMultiEvalStreamingModOCLUnified().

Member Data Documentation

template<typename T>
size_t sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::datasetSizeUnpadded
protected
template<typename T>
std::vector<std::shared_ptr<base::OCLDevice> > sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::devices
protected
template<typename T>
size_t sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::gridSizeUnpadded
protected
template<typename T>
std::vector<T> sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::index
protected
template<typename T>
std::vector<T> sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::kernelDataset
protected
template<typename T>
std::vector<T> sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::level
protected
template<typename T>
std::shared_ptr<base::OCLManagerMultiPlatform> sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::manager
protected
template<typename T>
std::vector<StreamingModOCLUnified::KernelMult<T> > sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::multKernels
protected

Timer object to handle time measurements.

template<typename T>
size_t sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::overallDataBlockingSize
protected
template<typename T>
std::shared_ptr<base::OCLOperationConfiguration> sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::parameters
protected
template<typename T>
sgpp::base::DataMatrix sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::preparedDataset
protected
template<typename T>
std::shared_ptr<sgpp::base::QueueLoadBalancerOpenMP> sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::queueLoadBalancerMult
protected
template<typename T>
std::vector<T> sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::scaling
protected

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