PassThrough< LowLength > Struct Template Reference

PassThrough&lt; LowLength &gt; Struct Template Reference#

Composable Kernel: ck::PassThrough< LowLength > Struct Template Reference
ck::PassThrough< LowLength > Struct Template Reference

#include <multi_index_transform.hpp>

Public Types

using LowerIndex = MultiIndex< 1 >
 
using UpperIndex = MultiIndex< 1 >
 
using UpLengths = decltype(make_tuple(LowLength{}))
 

Public Member Functions

__host__ constexpr __device__ PassThrough ()=default
 
__host__ constexpr __device__ PassThrough (const LowLength &low_length)
 
__host__ constexpr __device__ const auto & GetUpperLengths () const
 
__host__ __device__ void Print () const
 

Static Public Member Functions

__host__ static constexpr __device__ index_t GetNumOfLowerDimension ()
 
__host__ static constexpr __device__ index_t GetNumOfUpperDimension ()
 
template<typename LowIdx , typename UpIdx >
__host__ static constexpr __device__ void CalculateLowerIndex (LowIdx &idx_low, const UpIdx &idx_up)
 
template<typename LowIdxDiff , typename UpIdxDiff , typename LowIdx , typename UpIdx , index_t Hack>
__host__ static __device__ void UpdateLowerIndex (LowIdxDiff &idx_diff_low, const UpIdxDiff &idx_diff_up, LowIdx &idx_low, const UpIdx &, Number< Hack >)
 
__host__ static constexpr __device__ bool IsLinearTransform ()
 
__host__ static constexpr __device__ bool IsValidUpperIndexAlwaysMappedToValidLowerIndex ()
 
template<typename UpIdx >
__host__ static constexpr __device__ bool IsValidUpperIndexMappedToValidLowerIndex (const UpIdx &)
 
__host__ static constexpr __device__ bool IsKnownAtCompileTime ()
 

Public Attributes

UpLengths up_lengths_
 

Member Typedef Documentation

◆ LowerIndex

template<typename LowLength >
using ck::PassThrough< LowLength >::LowerIndex = MultiIndex<1>

◆ UpLengths

template<typename LowLength >
using ck::PassThrough< LowLength >::UpLengths = decltype(make_tuple(LowLength{}))

◆ UpperIndex

template<typename LowLength >
using ck::PassThrough< LowLength >::UpperIndex = MultiIndex<1>

Constructor & Destructor Documentation

◆ PassThrough() [1/2]

template<typename LowLength >
__host__ constexpr __device__ ck::PassThrough< LowLength >::PassThrough ( )
constexprdefault

◆ PassThrough() [2/2]

template<typename LowLength >
__host__ constexpr __device__ ck::PassThrough< LowLength >::PassThrough ( const LowLength &  low_length)
inlineconstexpr

Member Function Documentation

◆ CalculateLowerIndex()

template<typename LowLength >
template<typename LowIdx , typename UpIdx >
__host__ static constexpr __device__ void ck::PassThrough< LowLength >::CalculateLowerIndex ( LowIdx &  idx_low,
const UpIdx &  idx_up 
)
inlinestaticconstexpr

◆ GetNumOfLowerDimension()

template<typename LowLength >
__host__ static constexpr __device__ index_t ck::PassThrough< LowLength >::GetNumOfLowerDimension ( )
inlinestaticconstexpr

◆ GetNumOfUpperDimension()

template<typename LowLength >
__host__ static constexpr __device__ index_t ck::PassThrough< LowLength >::GetNumOfUpperDimension ( )
inlinestaticconstexpr

◆ GetUpperLengths()

template<typename LowLength >
__host__ constexpr __device__ const auto& ck::PassThrough< LowLength >::GetUpperLengths ( ) const
inlineconstexpr

◆ IsKnownAtCompileTime()

template<typename LowLength >
__host__ static constexpr __device__ bool ck::PassThrough< LowLength >::IsKnownAtCompileTime ( )
inlinestaticconstexpr

◆ IsLinearTransform()

template<typename LowLength >
__host__ static constexpr __device__ bool ck::PassThrough< LowLength >::IsLinearTransform ( )
inlinestaticconstexpr

◆ IsValidUpperIndexAlwaysMappedToValidLowerIndex()

template<typename LowLength >
__host__ static constexpr __device__ bool ck::PassThrough< LowLength >::IsValidUpperIndexAlwaysMappedToValidLowerIndex ( )
inlinestaticconstexpr

◆ IsValidUpperIndexMappedToValidLowerIndex()

template<typename LowLength >
template<typename UpIdx >
__host__ static constexpr __device__ bool ck::PassThrough< LowLength >::IsValidUpperIndexMappedToValidLowerIndex ( const UpIdx &  )
inlinestaticconstexpr

◆ Print()

template<typename LowLength >
__host__ __device__ void ck::PassThrough< LowLength >::Print ( ) const
inline

◆ UpdateLowerIndex()

template<typename LowLength >
template<typename LowIdxDiff , typename UpIdxDiff , typename LowIdx , typename UpIdx , index_t Hack>
__host__ static __device__ void ck::PassThrough< LowLength >::UpdateLowerIndex ( LowIdxDiff &  idx_diff_low,
const UpIdxDiff &  idx_diff_up,
LowIdx &  idx_low,
const UpIdx &  ,
Number< Hack >   
)
inlinestatic

Member Data Documentation

◆ up_lengths_

template<typename LowLength >
UpLengths ck::PassThrough< LowLength >::up_lengths_

The documentation for this struct was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/tensor_description/multi_index_transform.hpp