Speclib  0.1.2
The library for writing better CUDA libraries
sp::TensorProps< P, PT > Struct Template Reference

Determines the layout and optimisation flags for a TensorLike. More...

#include <TensorProperties.hpp>

Public Types

template<bool NewPitch>
using PitchedAs = TensorProps< P, NewPitch >
 
template<PackMode NewPackmode>
using PackedAs = TensorProps< NewPackmode, PT >
 

Static Public Attributes

static constexpr PackMode Packedness = P
 
static constexpr bool Pitched = PT
 

Detailed Description

template<PackMode P, bool PT>
struct sp::TensorProps< P, PT >

Determines the layout and optimisation flags for a TensorLike.

TensorSpecialiser will select the best ones at runtime using a branch tree, but statically setting these yourself - if known - can improve efficiency.