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

Vector definition for 1-bit binary datatype.

#include <vector.h>

Public Types

enum  { kLanes = kLanes_ }
 The number of elements in the vector. More...
 
enum  { kVectorSize = kLanes / 8 }
 The size of the vector. More...
 
enum  
 The number of registers needed to store the vector. More...
 
typedef bin1_t Scalar
 The scalar type. More...
 

Public Member Functions

CUTLASS_HOST_DEVICE Vector ()
 Default Constructor. More...
 
CUTLASS_HOST_DEVICE Vector (uint32_t value)
 Constructor to convert from uint32_t type. More...
 
CUTLASS_HOST_DEVICE bool operator[] (uint32_t i) const
 Accessor to the ith lane. More...
 

Public Attributes

AlignedStruct< kVectorSizealigned_
 The aligned storage to make sure we have good alignment. More...
 
uint32_t registers [kRegisters]
 The data in registers. More...
 

Member Typedef Documentation

◆ Scalar

template<int kLanes_>
typedef bin1_t cutlass::Vector< bin1_t, kLanes_ >::Scalar

Member Enumeration Documentation

◆ anonymous enum

template<int kLanes_>
anonymous enum
Enumerator
kLanes 

◆ anonymous enum

template<int kLanes_>
anonymous enum
Enumerator
kVectorSize 

◆ anonymous enum

template<int kLanes_>
anonymous enum

Constructor & Destructor Documentation

◆ Vector() [1/2]

template<int kLanes_>
CUTLASS_HOST_DEVICE cutlass::Vector< bin1_t, kLanes_ >::Vector ( )
inline

◆ Vector() [2/2]

template<int kLanes_>
CUTLASS_HOST_DEVICE cutlass::Vector< bin1_t, kLanes_ >::Vector ( uint32_t  value)
inline

Member Function Documentation

◆ operator[]()

template<int kLanes_>
CUTLASS_HOST_DEVICE bool cutlass::Vector< bin1_t, kLanes_ >::operator[] ( uint32_t  i) const
inline

Member Data Documentation

◆ aligned_

template<int kLanes_>
AlignedStruct<kVectorSize> cutlass::Vector< bin1_t, kLanes_ >::aligned_

◆ registers

template<int kLanes_>
uint32_t cutlass::Vector< bin1_t, kLanes_ >::registers[kRegisters]

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