SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T > Class Template Reference

#include <OperationMultiEvalStreamingModOCLFastMultiPlatform.hpp>

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

Public Member Functions

double getDuration () override
 
void mult (base::DataVector &alpha, base::DataVector &result) override
 Multiplication of \(B^T\) with vector \(\alpha\).
 
void multTranspose (base::DataVector &source, base::DataVector &result) override
 Multiplication of \(B\) with vector \(\alpha\).
 
 OperationMultiEvalStreamingModOCLFastMultiPlatform (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.
 
 ~OperationMultiEvalStreamingModOCLFastMultiPlatform ()
 
- Public Member Functions inherited from sgpp::base::OperationMultipleEval
void eval (DataVector &alpha, DataVector &result)
 Evaluate multiple datapoints with the specified grid.
 
virtual std::string getImplementationName ()
 Name of this implementation of the operation.
 
virtual void mult (DataVector &alpha, DataVector &result, size_t startIndexData, size_t endIndexData)
 Multiplication of \(B^T\) with vector \(\alpha\).
 
virtual void multTranspose (DataVector &source, DataVector &result, size_t startIndexGrid, size_t endIndexGrid)
 Multiplication of \(B\) with vector \(\alpha\).
 
 OperationMultipleEval (sgpp::base::Grid &grid, DataMatrix &dataset)
 Constructor.
 
virtual ~OperationMultipleEval ()
 Destructor.
 

Protected Attributes

size_t commonDatasetPadding
 
size_t commonGridPadding
 
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
 Member to store the sparse grid's indices for better vectorization.
 
std::vector< T > kernelDataset
 
std::vector< T > level
 Member to store the sparse grid's levels for better vectorization.
 
std::shared_ptr< base::OCLManagerMultiPlatformmanager
 
std::vector< StreamingModOCLFastMultiPlatform::KernelMult< T > > multKernels
 
std::vector< StreamingModOCLFastMultiPlatform::KernelMultTranspose< T > > multTransposeKernels
 
sgpp::base::SGppStopwatch myTimer
 Timer object to handle time measurements.
 
std::shared_ptr< base::OCLOperationConfigurationparameters
 
sgpp::base::DataMatrix preparedDataset
 
std::shared_ptr< base::QueueLoadBalancerMutexqueueLoadBalancerMult
 
std::shared_ptr< base::QueueLoadBalancerMutexqueueLoadBalancerMultTranspose
 
bool verbose
 
- Protected Attributes inherited from sgpp::base::OperationMultipleEval
DataMatrixdataset
 
Gridgrid
 
bool isPrepared
 

Constructor & Destructor Documentation

◆ OperationMultiEvalStreamingModOCLFastMultiPlatform()

template<typename T >
sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::OperationMultiEvalStreamingModOCLFastMultiPlatform ( base::Grid grid,
base::DataMatrix dataset,
std::shared_ptr< base::OCLManagerMultiPlatform manager,
std::shared_ptr< base::OCLOperationConfiguration parameters 
)
inline

◆ ~OperationMultiEvalStreamingModOCLFastMultiPlatform()

Member Function Documentation

◆ getDuration()

◆ mult()

◆ multTranspose()

◆ prepare()

template<typename T >
void sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< 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::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::devices.

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

Member Data Documentation

◆ commonDatasetPadding

◆ commonGridPadding

◆ datasetSizePadded

◆ datasetSizeUnpadded

◆ devices

◆ dims

◆ duration

◆ gridSizePadded

◆ gridSizeUnpadded

◆ index

◆ kernelDataset

template<typename T >
std::vector<T> sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::kernelDataset
protected

◆ level

◆ manager

template<typename T >
std::shared_ptr<base::OCLManagerMultiPlatform> sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::manager
protected

◆ multKernels

◆ multTransposeKernels

◆ myTimer

Timer object to handle time measurements.

◆ parameters

template<typename T >
std::shared_ptr<base::OCLOperationConfiguration> sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::parameters
protected

◆ preparedDataset

◆ queueLoadBalancerMult

◆ queueLoadBalancerMultTranspose

◆ verbose


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