Cutlass
CUDA Templates for Linear Algebra Subroutines and Solvers
Public Types | Public Member Functions | Public Attributes | List of all members
cutlass::Vector< half, 1 > Union Template Reference

#include <vector.h>

Public Types

enum  { kLanes = 1 }
 The number of elements in the vector. More...
 
enum  { kVectorSize = kLanes * (int)sizeof(Scalar) }
 The size of the vector. More...
 
enum  
 The number of registers needed to store the vector. More...
 
typedef half Scalar
 The scalar type. More...
 

Public Member Functions

CUTLASS_HOST_DEVICE Scalar const & operator[] (uint32_t i) const
 Accessor to the ith lane. More...
 
CUTLASS_HOST_DEVICE Scalaroperator[] (uint32_t i)
 Accessor to the ith lane. More...
 

Public Attributes

AlignedStruct< kVectorSizealigned_
 The aligned storage to make sure we have good alignment. More...
 
uint16_t scalars [kLanes]
 The associated array of scalars. More...
 

Member Typedef Documentation

◆ Scalar

typedef half cutlass::Vector< half, 1 >::Scalar

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kLanes 

◆ anonymous enum

anonymous enum
Enumerator
kVectorSize 

◆ anonymous enum

anonymous enum

Member Function Documentation

◆ operator[]() [1/2]

CUTLASS_HOST_DEVICE Scalar const& cutlass::Vector< half, 1 >::operator[] ( uint32_t  i) const
inline

◆ operator[]() [2/2]

CUTLASS_HOST_DEVICE Scalar& cutlass::Vector< half, 1 >::operator[] ( uint32_t  i)
inline

Member Data Documentation

◆ aligned_

AlignedStruct<kVectorSize> cutlass::Vector< half, 1 >::aligned_

◆ scalars

uint16_t cutlass::Vector< half, 1 >::scalars[kLanes]

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