Back to Cutlass

CUTLASS: cutlass::layout::RowMajorInterleaved< Interleave > Struct Template Reference

docs/structcutlass_1_1layout_1_1RowMajorInterleaved.html

4.4.213.0 KB
Original Source

| | CUTLASS

CUDA Templates for Linear Algebra Subroutines and Solvers |

Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members

cutlass::layout::RowMajorInterleaved< Interleave > Struct Template Reference

#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 | RowMajorInterleaved (Index ldm=0) | | | Ctor. More...
| | | | CUTLASS_HOST_DEVICE | RowMajorInterleaved (Stride stride) | | | 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 RowMajorInterleaved | 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 | kInterleave = Interleave | | | Size of interleaved columns. More...
| | |

Detailed Description

template<int Interleave> struct cutlass::layout::RowMajorInterleaved< Interleave >

Mapping function for interleaved matrices. Matrix is structured as row-major arrangement of fixed-size columns.

Member Typedef Documentation

template<int Interleave>

| using cutlass::layout::RowMajorInterleaved< Interleave >::Index = int32_t |

template<int Interleave>

| using cutlass::layout::RowMajorInterleaved< Interleave >::LongIndex = int64_t |

template<int Interleave>

| using cutlass::layout::RowMajorInterleaved< Interleave >::Stride = Coord<kStrideRank, Index> |

template<int Interleave>

| using cutlass::layout::RowMajorInterleaved< Interleave >::TensorCoord = MatrixCoord |

Constructor & Destructor Documentation

template<int Interleave>

|

| CUTLASS_HOST_DEVICE cutlass::layout::RowMajorInterleaved< Interleave >::RowMajorInterleaved | ( | Index | ldm = 0 | ) | |

| inline |

template<int Interleave>

|

| CUTLASS_HOST_DEVICE cutlass::layout::RowMajorInterleaved< Interleave >::RowMajorInterleaved | ( | Stride | stride | ) | |

| inline |

Member Function Documentation

template<int Interleave>

|

| CUTLASS_HOST_DEVICE LongIndex cutlass::layout::RowMajorInterleaved< Interleave >::capacity | ( | MatrixCoord const & | extent | ) | const |

| inline |

template<int Interleave>

|

| CUTLASS_HOST_DEVICE MatrixCoord cutlass::layout::RowMajorInterleaved< Interleave >::inverse | ( | LongIndex | offset | ) | const |

| inline |

template<int Interleave>

|

| CUTLASS_HOST_DEVICE LongIndex cutlass::layout::RowMajorInterleaved< Interleave >::operator() | ( | MatrixCoord const & | coord | ) | const |

| inline |

Returns the offset of a coordinate in linear memory. Assumes coordinate has convention (row, column)

template<int Interleave>

|

| static CUTLASS_HOST_DEVICE RowMajorInterleaved cutlass::layout::RowMajorInterleaved< Interleave >::packed | ( | MatrixCoord const & | extent | ) | |

| inlinestatic |

template<int Interleave>

|

| CUTLASS_HOST_DEVICE Stride cutlass::layout::RowMajorInterleaved< Interleave >::stride | ( | | ) | const |

| inline |

template<int Interleave>

|

| CUTLASS_HOST_DEVICE Stride& cutlass::layout::RowMajorInterleaved< Interleave >::stride | ( | | ) | |

| inline |

template<int Interleave>

|

| CUTLASS_HOST_DEVICE Index cutlass::layout::RowMajorInterleaved< Interleave >::stride | ( | int | idx | ) | const |

| inline |

template<int Interleave>

|

| CUTLASS_HOST_DEVICE Index& cutlass::layout::RowMajorInterleaved< Interleave >::stride | ( | int | idx | ) | |

| inline |

Member Data Documentation

template<int Interleave>

|

| int const cutlass::layout::RowMajorInterleaved< Interleave >::kInterleave = Interleave |

| static |

template<int Interleave>

|

| int const cutlass::layout::RowMajorInterleaved< Interleave >::kRank = 2 |

| static |

template<int Interleave>

|

| int const cutlass::layout::RowMajorInterleaved< Interleave >::kStrideRank = 1 |

| static |


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


Generated by 1.8.11