Vectorize< VectorSize, UpLength > Struct Template Reference

Vectorize&lt; VectorSize, UpLength &gt; Struct Template Reference#

Composable Kernel: ck::Vectorize< VectorSize, UpLength > Struct Template Reference
ck::Vectorize< VectorSize, UpLength > Struct Template Reference

#include <multi_index_transform.hpp>

Public Types

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

Public Member Functions

__host__ constexpr __device__ Vectorize ()=default
 
__host__ constexpr __device__ Vectorize (const VectorSize &vector_size, const UpLength &up_length)
 
__host__ constexpr __device__ const auto & GetUpperLengths () const
 
template<typename LowIdx , typename UpIdx >
__host__ constexpr __device__ void CalculateLowerIndex (LowIdx &idx_low, const UpIdx &idx_up) const
 
template<typename LowIdxDiff , typename UpIdxDiff , typename LowIdx , typename UpIdx , index_t Hack>
__host__ __device__ void UpdateLowerIndex (LowIdxDiff &idx_diff_low, const UpIdxDiff &idx_diff_up, LowIdx &idx_low, const UpIdx &, Number< Hack >) const
 
__host__ __device__ void Print () const
 

Static Public Member Functions

__host__ static constexpr __device__ index_t GetNumOfLowerDimension ()
 
__host__ static constexpr __device__ index_t GetNumOfUpperDimension ()
 
__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_
 
VectorSize vector_size_
 

Member Typedef Documentation

◆ LowerIndex

template<typename VectorSize , typename UpLength >
using ck::Vectorize< VectorSize, UpLength >::LowerIndex = MultiIndex<1>

◆ UpLengths

template<typename VectorSize , typename UpLength >
using ck::Vectorize< VectorSize, UpLength >::UpLengths = decltype(make_tuple(UpLength{}))

◆ UpperIndex

template<typename VectorSize , typename UpLength >
using ck::Vectorize< VectorSize, UpLength >::UpperIndex = MultiIndex<1>

Constructor & Destructor Documentation

◆ Vectorize() [1/2]

template<typename VectorSize , typename UpLength >
__host__ constexpr __device__ ck::Vectorize< VectorSize, UpLength >::Vectorize ( )
constexprdefault

◆ Vectorize() [2/2]

template<typename VectorSize , typename UpLength >
__host__ constexpr __device__ ck::Vectorize< VectorSize, UpLength >::Vectorize ( const VectorSize &  vector_size,
const UpLength &  up_length 
)
inlineconstexpr

Member Function Documentation

◆ CalculateLowerIndex()

template<typename VectorSize , typename UpLength >
template<typename LowIdx , typename UpIdx >
__host__ constexpr __device__ void ck::Vectorize< VectorSize, UpLength >::CalculateLowerIndex ( LowIdx &  idx_low,
const UpIdx &  idx_up 
) const
inlineconstexpr

◆ GetNumOfLowerDimension()

template<typename VectorSize , typename UpLength >
__host__ static constexpr __device__ index_t ck::Vectorize< VectorSize, UpLength >::GetNumOfLowerDimension ( )
inlinestaticconstexpr

◆ GetNumOfUpperDimension()

template<typename VectorSize , typename UpLength >
__host__ static constexpr __device__ index_t ck::Vectorize< VectorSize, UpLength >::GetNumOfUpperDimension ( )
inlinestaticconstexpr

◆ GetUpperLengths()

template<typename VectorSize , typename UpLength >
__host__ constexpr __device__ const auto& ck::Vectorize< VectorSize, UpLength >::GetUpperLengths ( ) const
inlineconstexpr

◆ IsKnownAtCompileTime()

template<typename VectorSize , typename UpLength >
__host__ static constexpr __device__ bool ck::Vectorize< VectorSize, UpLength >::IsKnownAtCompileTime ( )
inlinestaticconstexpr

◆ IsLinearTransform()

template<typename VectorSize , typename UpLength >
__host__ static constexpr __device__ bool ck::Vectorize< VectorSize, UpLength >::IsLinearTransform ( )
inlinestaticconstexpr

◆ IsValidUpperIndexAlwaysMappedToValidLowerIndex()

template<typename VectorSize , typename UpLength >
__host__ static constexpr __device__ bool ck::Vectorize< VectorSize, UpLength >::IsValidUpperIndexAlwaysMappedToValidLowerIndex ( )
inlinestaticconstexpr

◆ IsValidUpperIndexMappedToValidLowerIndex()

template<typename VectorSize , typename UpLength >
template<typename UpIdx >
__host__ static constexpr __device__ bool ck::Vectorize< VectorSize, UpLength >::IsValidUpperIndexMappedToValidLowerIndex ( const UpIdx &  )
inlinestaticconstexpr

◆ Print()

template<typename VectorSize , typename UpLength >
__host__ __device__ void ck::Vectorize< VectorSize, UpLength >::Print ( ) const
inline

◆ UpdateLowerIndex()

template<typename VectorSize , typename UpLength >
template<typename LowIdxDiff , typename UpIdxDiff , typename LowIdx , typename UpIdx , index_t Hack>
__host__ __device__ void ck::Vectorize< VectorSize, UpLength >::UpdateLowerIndex ( LowIdxDiff &  idx_diff_low,
const UpIdxDiff &  idx_diff_up,
LowIdx &  idx_low,
const UpIdx &  ,
Number< Hack >   
) const
inline

Member Data Documentation

◆ up_lengths_

template<typename VectorSize , typename UpLength >
UpLengths ck::Vectorize< VectorSize, UpLength >::up_lengths_

◆ vector_size_

template<typename VectorSize , typename UpLength >
VectorSize ck::Vectorize< VectorSize, UpLength >::vector_size_

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