![]() |
CUTLASS
CUDA Templates for Linear Algebra Subroutines and Solvers
|
#include <matrix.h>
Public Types | |
| using | Index = int32_t |
| Index type used for coordinates. More... | |
| using | LongIndex = int64_t |
| Long index type used for offsets. More... | |
| using | TensorCoord = MatrixCoord |
| Logical coordinate. More... | |
| using | Stride = Coord< kStrideRank, Index > |
| Stride vector. More... | |
Public Member Functions | |
| CUTLASS_HOST_DEVICE | RowMajorBlockLinear (Index ldm=0) |
| Ctor. More... | |
| CUTLASS_HOST_DEVICE LongIndex | operator() (MatrixCoord const &coord) const |
| CUTLASS_HOST_DEVICE MatrixCoord | inverse (LongIndex offset) const |
| Inverse of layout function, mapping linear offset to logical coordinate. More... | |
| CUTLASS_HOST_DEVICE Stride | stride () const |
| Returns the stride of the layout. More... | |
| CUTLASS_HOST_DEVICE Stride & | stride () |
| Returns the stride of the layout. More... | |
| CUTLASS_HOST_DEVICE Index | stride (int idx) const |
| Returns the stride of the layout. More... | |
| CUTLASS_HOST_DEVICE Index & | stride (int idx) |
| Returns the stride of the layout. More... | |
| CUTLASS_HOST_DEVICE LongIndex | capacity (MatrixCoord const &extent) const |
| Compute the number of contiguous elements needed to store a tensor with the given size. More... | |
Static Public Member Functions | |
| static CUTLASS_HOST_DEVICE RowMajorBlockLinear | packed (MatrixCoord const &extent) |
| Helper returns a layout to a tightly packed tensor. More... | |
Static Public Attributes | |
| static int const | kRank = 2 |
| Logical rank of tensor. More... | |
| static int const | kStrideRank = 1 |
| Rank of stride vector. More... | |
| static int const | kBlockRows = BlockRows |
| Size of a block in rows. More... | |
| static int const | kBlockColumns = BlockColumns |
| Size of a block in columns. More... | |
Mapping function for block-linear matrices. Matrix is structured as row-major arrangement of 2D tiles (that are row-major)
| using cutlass::layout::RowMajorBlockLinear< BlockRows, BlockColumns >::Index = int32_t |
| using cutlass::layout::RowMajorBlockLinear< BlockRows, BlockColumns >::LongIndex = int64_t |
| using cutlass::layout::RowMajorBlockLinear< BlockRows, BlockColumns >::Stride = Coord<kStrideRank, Index> |
| using cutlass::layout::RowMajorBlockLinear< BlockRows, BlockColumns >::TensorCoord = MatrixCoord |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the offset of a coordinate in linear memory. Assumes coordinate has convention (row, column)
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
1.8.11