template<typename T>
class walberla::gpu::FieldIndexing< T >
Utility class to generate handles to the underlying device data of a GPUField.
Pre-calculate memory offsets of a GPUField for a given slice, cell interval, or the entire grid with or without the ghost layer, and store them in a FieldAccessor handle. That handle is obtained by calling gpuAccess().
|
|
const GPUField< T > & | field_ |
|
dim3 | blockDim_ |
|
dim3 | gridDim_ |
|
FieldAccessor< T > | gpuAccess_ |
|
static FieldIndexing< T > | interval (const GPUField< T > &f, const cell::CellInterval &ci, int fBegin=0, int fEnd=1) |
|
static FieldIndexing< T > | xyz (const GPUField< T > &f) |
|
static FieldIndexing< T > | withGhostLayerXYZ (const GPUField< T > &f, uint_t numGhostLayers) |
|
static FieldIndexing< T > | ghostLayerOnlyXYZ (const GPUField< T > &f, uint_t thickness, stencil::Direction dir, bool fullSlice=false) |
|
static FieldIndexing< T > | sliceBeforeGhostLayerXYZ (const GPUField< T > &f, uint_t thickness, stencil::Direction dir, bool fullSlice=false) |
|
static FieldIndexing< T > | sliceXYZ (const GPUField< T > &f, cell_idx_t distance, uint_t thickness, stencil::Direction dir, bool fullSlice=false) |
|
static FieldIndexing< T > | allInner (const GPUField< T > &f) |
|
static FieldIndexing< T > | allWithGhostLayer (const GPUField< T > &f) |
|
static FieldIndexing< T > | all (const GPUField< T > &f, const cell::CellInterval &ci) |
|
| FieldIndexing (const GPUField< T > &field, dim3 _blockDim, dim3 _gridDim, const FieldAccessor< T > _gpuAccess) |
|