Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends

LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE > Class Template Reference

#include <openclstepper.h>

Inherits LibGeoDecomp::HiParSimulator::Stepper< CELL_TYPE >.

Collaboration diagram for LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
APITraits::SelectTopology
< CELL_TYPE >::Value 
Topology
typedef class Stepper< CELL_TYPE > ParentType
typedef ParentType::GridType GridType
typedef PartitionManager
< Topology
PartitionManagerType

Public Member Functions

 OpenCLStepper (const std::string &cellSourceFile, boost::shared_ptr< PartitionManagerType > partitionManager, boost::shared_ptr< Initializer< CELL_TYPE > > initializer, const int platformID=0, const int deviceID=0)
virtual std::pair< std::size_t,
std::size_t > 
currentStep () const
 returns current step and nanoStep
virtual void update (std::size_t nanoSteps)
virtual const GridTypegrid () const

Static Public Attributes

static const int DIM = Topology::DIM

Private Member Functions

void genThreadCoords (std::vector< int > *startCoords, std::vector< int > *endCoords, const int &offset_x, const int &offset_y, const int &offset_z, const int &active_x, const int &active_y, const int &active_z, const int &actual_x, const int &actual_y, const int &actual_z, const int &planes)
void initGrids ()
std::string oclStrerror (int nr)

Private Attributes

int curStep
int curNanoStep
boost::shared_ptr< GridTypehostGrid
cl::Buffer inputDeviceGrid
cl::Buffer outputDeviceGrid
cl::Context context
cl::CommandQueue cmdQueue
cl::Kernel kernel

Friends

class OpenCLStepperTest

template<typename CELL_TYPE>
class LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >


Member Typedef Documentation

template<typename CELL_TYPE >
typedef ParentType::GridType LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::GridType
template<typename CELL_TYPE >
typedef class Stepper< CELL_TYPE > LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::ParentType
template<typename CELL_TYPE >
typedef PartitionManager<Topology> LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::PartitionManagerType
template<typename CELL_TYPE >
typedef APITraits::SelectTopology<CELL_TYPE>::Value LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::Topology

Constructor & Destructor Documentation

template<typename CELL_TYPE >
LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::OpenCLStepper ( const std::string &  cellSourceFile,
boost::shared_ptr< PartitionManagerType partitionManager,
boost::shared_ptr< Initializer< CELL_TYPE > >  initializer,
const int  platformID = 0,
const int  deviceID = 0 
) [inline]

Member Function Documentation

template<typename CELL_TYPE >
virtual std::pair<std::size_t, std::size_t> LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::currentStep (  )  const [inline, virtual]
template<typename CELL_TYPE >
void LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::genThreadCoords ( std::vector< int > *  startCoords,
std::vector< int > *  endCoords,
const int &  offset_x,
const int &  offset_y,
const int &  offset_z,
const int &  active_x,
const int &  active_y,
const int &  active_z,
const int &  actual_x,
const int &  actual_y,
const int &  actual_z,
const int &  planes 
) [inline, private]

References LibGeoDecomp::min().

template<typename CELL_TYPE >
virtual const GridType& LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::grid (  )  const [inline, virtual]
template<typename CELL_TYPE >
void LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::initGrids (  )  [inline, private]
template<typename CELL_TYPE >
std::string LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::oclStrerror ( int  nr  )  [inline, private]
template<typename CELL_TYPE >
virtual void LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::update ( std::size_t  nanoSteps  )  [inline, virtual]

Friends And Related Function Documentation

template<typename CELL_TYPE >
friend class OpenCLStepperTest [friend]

Member Data Documentation

template<typename CELL_TYPE >
cl::CommandQueue LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::cmdQueue [private]
template<typename CELL_TYPE >
cl::Context LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::context [private]
template<typename CELL_TYPE >
int LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::curNanoStep [private]
template<typename CELL_TYPE >
int LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::curStep [private]
template<typename CELL_TYPE >
const int LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::DIM = Topology::DIM [static]
template<typename CELL_TYPE >
boost::shared_ptr<GridType> LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::hostGrid [private]
template<typename CELL_TYPE >
cl::Buffer LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::inputDeviceGrid [private]
template<typename CELL_TYPE >
cl::Kernel LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::kernel [private]
template<typename CELL_TYPE >
cl::Buffer LibGeoDecomp::HiParSimulator::OpenCLStepper< CELL_TYPE >::outputDeviceGrid [private]

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