63 alignas(Align)
Storage storage[kBytes];
85 return reinterpret_cast<pointer
>(storage);
89 const_pointer
data()
const {
90 return reinterpret_cast<pointer
>(storage);
T value_type
Definition: aligned_buffer.h:71
value_type const * const_pointer
Definition: aligned_buffer.h:75
Definition: aligned_buffer.h:35
CUTLASS_HOST_DEVICE Storage const * raw_data() const
Definition: aligned_buffer.h:99
typename Array::const_reference const_reference
Definition: aligned_buffer.h:79
CUTLASS_HOST_DEVICE constexpr size_type max_size() const
Definition: aligned_buffer.h:115
uint8_t Storage
Internal storage type.
Definition: aligned_buffer.h:48
Statically sized array of elements that accommodates all CUTLASS-supported numeric types and is safe ...
Defines the size of an element in bits.
Definition: numeric_types.h:42
static int const kBytes
Number of storage elements.
Definition: aligned_buffer.h:57
#define CUTLASS_HOST_DEVICE
Definition: cutlass.h:89
Modifies semantics of cutlass::Array<> to provide guaranteed alignment.
Definition: aligned_buffer.h:45
CUTLASS_HOST_DEVICE pointer data()
Definition: aligned_buffer.h:84
static int const kCount
Number of logical elements held in buffer.
Definition: aligned_buffer.h:51
static int const kAlign
Alignment requirement in bytes.
Definition: aligned_buffer.h:54
CUTLASS_HOST_DEVICE Storage * raw_data()
Definition: aligned_buffer.h:94
typename Array::reference reference
Definition: aligned_buffer.h:78
Array< Element, N > Array
Definition: aligned_buffer.h:77
size_t size_type
Definition: aligned_buffer.h:72
ptrdiff_t difference_type
Definition: aligned_buffer.h:73
value_type * pointer
Definition: aligned_buffer.h:74
Basic include for CUTLASS.
CUTLASS_HOST_DEVICE constexpr bool empty() const
Definition: aligned_buffer.h:105
CUTLASS_HOST_DEVICE constexpr size_type size() const
Definition: aligned_buffer.h:110
CUTLASS_HOST_DEVICE const_pointer data() const
Definition: aligned_buffer.h:89