40 template <
typename Scalar_,
typename Shape_>
99 template <
typename First_,
typename Second_>
CUTLASS_DEVICE TensorRef reference()
Returns a TensorRef object pointing to the data.
Definition: tile_allocation.h:134
ZipTensorRef< typename First::ConstTensorRef, typename Second::ConstTensorRef > ConstTensorRef
Defines the tensor reference for this allocation.
Definition: tile_allocation.h:116
Shape< Shape_::kH *Shape_::kW *Shape_::kC, Shape_::kW *Shape_::kC, Shape_::kC, elementsPerAccess > Shape
Definition: shape.h:170
Defines a structure containing strides, bounds, and a pointer to tensor data.
Definition: zip_tensor_ref.h:38
TensorRef< Scalar, 4 > TensorRef
Defines the tensor reference for this allocation.
Definition: tile_allocation.h:62
CUTLASS_DEVICE Scalar const * data() const
Returns a const pointer to the raw data.
Definition: tile_allocation.h:81
CUTLASS_HOST_DEVICE Coord< 1 > make_Coord(int _0)
Helper to make a 2-element coordinate.
Definition: coord.h:318
CUTLASS_DEVICE TensorRef reference()
Returns a TensorRef object pointing to the data.
Definition: tile_allocation.h:85
Second_ Second
Second tensor allocation.
Definition: tile_allocation.h:109
Storage storage[Shape::kD][Shape::kH][Shape::kW][Shape::kC]
Storage.
Definition: tile_allocation.h:69
ZipTensorRef< typename First::TensorRef, typename Second::TensorRef > TensorRef
Defines the tensor reference for this allocation.
Definition: tile_allocation.h:112
ShapeStrides< Shape, 1 >::Shape Strides
Strides.
Definition: tile_allocation.h:56
static int const kH
The height of the cube.
Definition: shape.h:68
Second second
Second tensor allocation.
Definition: tile_allocation.h:126
Definition: fragment.h:76
static int const kC
The number of scalars per element.
Definition: shape.h:72
TensorRef< Scalar const, 4 > ConstTensorRef
Defines the tensor reference for this allocation.
Definition: tile_allocation.h:59
First first
First tensor allocation.
Definition: tile_allocation.h:123
CUTLASS_DEVICE ConstTensorRef reference() const
Returns a TensorRef object pointing to the data.
Definition: tile_allocation.h:91
Defines a structure containing a pair of TensorRef-like objects.
Scalar_ Scalar
Scalar element.
Definition: tile_allocation.h:47
Manages a pair of tile allocations as if they are one allocation.
Definition: tile_allocation.h:100
Shape_ Shape
Size of the allocation in units of scalars.
Definition: tile_allocation.h:53
Class for storing a tile in memory and accessing it through a tensor ref.
Definition: tile_allocation.h:41
CUTLASS_DEVICE Scalar * data()
Returns a pointer to the raw data.
Definition: tile_allocation.h:77
CUTLASS_DEVICE ConstTensorRef reference() const
Returns a TensorRef object pointing to the data.
Definition: tile_allocation.h:138
static int const kW
The width of the cube.
Definition: shape.h:70
static int const kD
The depth of the cube.
Definition: shape.h:66
Defines Shape implementing the Layout concept for representing a 4D hypercube of objects.
StorageType< sizeof(Scalar)>::Type Storage
The actual storage (may differ from the scalar type)
Definition: tile_allocation.h:50
Defines Fragment, a statically-sized array for storing parts of matrices within a thread's registers...
First_ First
First tensor allocation.
Definition: tile_allocation.h:106