ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
walberla::pystencils::StreamSweepSinglePrecisionCUDA Class Reference

#include <StreamSweepSinglePrecisionCUDA.h>

Public Member Functions

 StreamSweepSinglePrecisionCUDA (BlockDataID forceID_, BlockDataID pdfsID_, BlockDataID velocityID_)
 
 ~StreamSweepSinglePrecisionCUDA ()
 
void run (IBlock *block, gpuStream_t stream=nullptr)
 
void runOnCellInterval (const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers, IBlock *block, gpuStream_t stream=nullptr)
 
void operator() (IBlock *block, gpuStream_t stream=nullptr)
 
std::function< void(IBlock *)> getSweep (gpuStream_t stream=nullptr)
 
std::function< void(IBlock *)> getSweepOnCellInterval (const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers=1, gpuStream_t stream=nullptr)
 
void configure (const shared_ptr< StructuredBlockStorage > &blocks, IBlock *block)
 

Static Public Member Functions

static std::function< void(IBlock *)> getSweep (const shared_ptr< StreamSweepSinglePrecisionCUDA > &kernel)
 
static std::function< void(IBlock *, gpuStream_t)> getSweepOnCellInterval (const shared_ptr< StreamSweepSinglePrecisionCUDA > &kernel, const shared_ptr< StructuredBlockStorage > &blocks, const CellInterval &globalCellInterval, cell_idx_t ghostLayers=1)
 

Public Attributes

BlockDataID forceID
 
BlockDataID pdfsID
 
BlockDataID velocityID
 

Detailed Description

Definition at line 55 of file StreamSweepSinglePrecisionCUDA.h.

Constructor & Destructor Documentation

◆ StreamSweepSinglePrecisionCUDA()

walberla::pystencils::StreamSweepSinglePrecisionCUDA::StreamSweepSinglePrecisionCUDA ( BlockDataID  forceID_,
BlockDataID  pdfsID_,
BlockDataID  velocityID_ 
)
inline

Definition at line 57 of file StreamSweepSinglePrecisionCUDA.h.

◆ ~StreamSweepSinglePrecisionCUDA()

walberla::pystencils::StreamSweepSinglePrecisionCUDA::~StreamSweepSinglePrecisionCUDA ( )
inline

Definition at line 61 of file StreamSweepSinglePrecisionCUDA.h.

Member Function Documentation

◆ configure()

void walberla::pystencils::StreamSweepSinglePrecisionCUDA::configure ( const shared_ptr< StructuredBlockStorage > &  blocks,
IBlock *  block 
)
inline

Definition at line 109 of file StreamSweepSinglePrecisionCUDA.h.

◆ getSweep() [1/2]

static std::function< void(IBlock *)> walberla::pystencils::StreamSweepSinglePrecisionCUDA::getSweep ( const shared_ptr< StreamSweepSinglePrecisionCUDA > &  kernel)
inlinestatic

Definition at line 79 of file StreamSweepSinglePrecisionCUDA.h.

◆ getSweep() [2/2]

std::function< void(IBlock *)> walberla::pystencils::StreamSweepSinglePrecisionCUDA::getSweep ( gpuStream_t  stream = nullptr)
inline

Definition at line 94 of file StreamSweepSinglePrecisionCUDA.h.

References run(), and stream.

◆ getSweepOnCellInterval() [1/2]

static std::function< void(IBlock *, gpuStream_t)> walberla::pystencils::StreamSweepSinglePrecisionCUDA::getSweepOnCellInterval ( const shared_ptr< StreamSweepSinglePrecisionCUDA > &  kernel,
const shared_ptr< StructuredBlockStorage > &  blocks,
const CellInterval &  globalCellInterval,
cell_idx_t  ghostLayers = 1 
)
inlinestatic

Definition at line 83 of file StreamSweepSinglePrecisionCUDA.h.

References stream.

◆ getSweepOnCellInterval() [2/2]

std::function< void(IBlock *)> walberla::pystencils::StreamSweepSinglePrecisionCUDA::getSweepOnCellInterval ( const shared_ptr< StructuredBlockStorage > &  blocks,
const CellInterval &  globalCellInterval,
cell_idx_t  ghostLayers = 1,
gpuStream_t  stream = nullptr 
)
inline

Definition at line 99 of file StreamSweepSinglePrecisionCUDA.h.

References runOnCellInterval(), and stream.

◆ operator()()

void walberla::pystencils::StreamSweepSinglePrecisionCUDA::operator() ( IBlock *  block,
gpuStream_t  stream = nullptr 
)
inline

Definition at line 74 of file StreamSweepSinglePrecisionCUDA.h.

References block(), run(), and stream.

◆ run()

void walberla::pystencils::StreamSweepSinglePrecisionCUDA::run ( IBlock *  block,
gpuStream_t  stream = nullptr 
)

Definition at line 109 of file StreamSweepSinglePrecisionCUDA.cu.

References block(), forceID, pdfsID, RESTRICT, velocity(), and velocityID.

Referenced by getSweep(), and operator()().

◆ runOnCellInterval()

void walberla::pystencils::StreamSweepSinglePrecisionCUDA::runOnCellInterval ( const shared_ptr< StructuredBlockStorage > &  blocks,
const CellInterval &  globalCellInterval,
cell_idx_t  ghostLayers,
IBlock *  block,
gpuStream_t  stream = nullptr 
)

Definition at line 169 of file StreamSweepSinglePrecisionCUDA.cu.

References block(), forceID, pdfsID, RESTRICT, velocity(), and velocityID.

Referenced by getSweepOnCellInterval().

Member Data Documentation

◆ forceID

BlockDataID walberla::pystencils::StreamSweepSinglePrecisionCUDA::forceID

Definition at line 112 of file StreamSweepSinglePrecisionCUDA.h.

Referenced by run(), and runOnCellInterval().

◆ pdfsID

BlockDataID walberla::pystencils::StreamSweepSinglePrecisionCUDA::pdfsID

Definition at line 113 of file StreamSweepSinglePrecisionCUDA.h.

Referenced by run(), and runOnCellInterval().

◆ velocityID

BlockDataID walberla::pystencils::StreamSweepSinglePrecisionCUDA::velocityID

Definition at line 114 of file StreamSweepSinglePrecisionCUDA.h.

Referenced by run(), and runOnCellInterval().


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