Speclib  0.1.2
The library for writing better CUDA libraries
sp::Strip< Rank > Struct Template Reference

Represents a contiguous strip of memory. A row in a row-major matrix, perhaps. More...

#include <Indexers.hpp>

Public Member Functions

__device__ int end ()
 The position in the final dimension of the first element past the end of the strip's vectorisable region. More...
 
__device__ int fullLength ()
 Length, including nonvectorisable parts. More...
 

Public Attributes

sp::Vec< int, Rank > pos
 The coordinates of the first element of the strip in the Tensor it is part of. More...
 
int length
 
sp::AlignmentFallout fallout
 The amount that has been sliced off either end of the strip to make it meet alignment requirements. More...
 

Detailed Description

template<int Rank>
struct sp::Strip< Rank >

Represents a contiguous strip of memory. A row in a row-major matrix, perhaps.

Member Function Documentation

◆ end()

template<int Rank>
__device__ int sp::Strip< Rank >::end ( )

The position in the final dimension of the first element past the end of the strip's vectorisable region.

◆ fullLength()

template<int Rank>
__device__ int sp::Strip< Rank >::fullLength ( )

Length, including nonvectorisable parts.

Member Data Documentation

◆ fallout

template<int Rank>
sp::AlignmentFallout sp::Strip< Rank >::fallout

The amount that has been sliced off either end of the strip to make it meet alignment requirements.

◆ pos

template<int Rank>
sp::Vec<int, Rank> sp::Strip< Rank >::pos

The coordinates of the first element of the strip in the Tensor it is part of.