UnMerge< UpLengths, Use24BitIntegerCalculation > Struct Template Reference

UnMerge&lt; UpLengths, Use24BitIntegerCalculation &gt; Struct Template Reference#

Composable Kernel: ck::UnMerge< UpLengths, Use24BitIntegerCalculation > Struct Template Reference
ck::UnMerge< UpLengths, Use24BitIntegerCalculation > Struct Template Reference

#include <multi_index_transform.hpp>

Public Types

using LowerIndex = MultiIndex< 1 >
 
using UpperIndex = MultiIndex< NDimUp >
 
using UpLengthsScan = decltype(container_reverse_exclusive_scan(UpLengths{}, math::multiplies{}, Number< 1 >{}))
 

Public Member Functions

__host__ constexpr __device__ UnMerge ()=default
 
__host__ constexpr __device__ UnMerge (const UpLengths &up_lengths)
 
__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_
 
UpLengthsScan up_lengths_scan_
 

Static Public Attributes

static constexpr index_t NDimUp = UpLengths::Size()
 

Member Typedef Documentation

◆ LowerIndex

template<typename UpLengths , bool Use24BitIntegerCalculation>
using ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::LowerIndex = MultiIndex<1>

◆ UpLengthsScan

template<typename UpLengths , bool Use24BitIntegerCalculation>
using ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::UpLengthsScan = decltype(container_reverse_exclusive_scan(UpLengths{}, math::multiplies{}, Number<1>{}))

◆ UpperIndex

template<typename UpLengths , bool Use24BitIntegerCalculation>
using ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::UpperIndex = MultiIndex<NDimUp>

Constructor & Destructor Documentation

◆ UnMerge() [1/2]

template<typename UpLengths , bool Use24BitIntegerCalculation>
__host__ constexpr __device__ ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::UnMerge ( )
constexprdefault

◆ UnMerge() [2/2]

template<typename UpLengths , bool Use24BitIntegerCalculation>
__host__ constexpr __device__ ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::UnMerge ( const UpLengths &  up_lengths)
inlineconstexpr

Member Function Documentation

◆ CalculateLowerIndex()

template<typename UpLengths , bool Use24BitIntegerCalculation>
template<typename LowIdx , typename UpIdx >
__host__ constexpr __device__ void ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::CalculateLowerIndex ( LowIdx &  idx_low,
const UpIdx &  idx_up 
) const
inlineconstexpr

◆ GetNumOfLowerDimension()

template<typename UpLengths , bool Use24BitIntegerCalculation>
__host__ static constexpr __device__ index_t ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::GetNumOfLowerDimension ( )
inlinestaticconstexpr

◆ GetNumOfUpperDimension()

template<typename UpLengths , bool Use24BitIntegerCalculation>
__host__ static constexpr __device__ index_t ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::GetNumOfUpperDimension ( )
inlinestaticconstexpr

◆ GetUpperLengths()

template<typename UpLengths , bool Use24BitIntegerCalculation>
__host__ constexpr __device__ const auto& ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::GetUpperLengths ( ) const
inlineconstexpr

◆ IsKnownAtCompileTime()

template<typename UpLengths , bool Use24BitIntegerCalculation>
__host__ static constexpr __device__ bool ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::IsKnownAtCompileTime ( )
inlinestaticconstexpr

◆ IsLinearTransform()

template<typename UpLengths , bool Use24BitIntegerCalculation>
__host__ static constexpr __device__ bool ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::IsLinearTransform ( )
inlinestaticconstexpr

◆ IsValidUpperIndexAlwaysMappedToValidLowerIndex()

template<typename UpLengths , bool Use24BitIntegerCalculation>
__host__ static constexpr __device__ bool ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::IsValidUpperIndexAlwaysMappedToValidLowerIndex ( )
inlinestaticconstexpr

◆ IsValidUpperIndexMappedToValidLowerIndex()

template<typename UpLengths , bool Use24BitIntegerCalculation>
template<typename UpIdx >
__host__ static constexpr __device__ bool ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::IsValidUpperIndexMappedToValidLowerIndex ( const UpIdx &  )
inlinestaticconstexpr

◆ Print()

template<typename UpLengths , bool Use24BitIntegerCalculation>
__host__ __device__ void ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::Print ( ) const
inline

◆ UpdateLowerIndex()

template<typename UpLengths , bool Use24BitIntegerCalculation>
template<typename LowIdxDiff , typename UpIdxDiff , typename LowIdx , typename UpIdx , index_t Hack>
__host__ __device__ void ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::UpdateLowerIndex ( LowIdxDiff &  idx_diff_low,
const UpIdxDiff &  idx_diff_up,
LowIdx &  idx_low,
const UpIdx &  ,
Number< Hack >   
) const
inline

Member Data Documentation

◆ NDimUp

template<typename UpLengths , bool Use24BitIntegerCalculation>
constexpr index_t ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::NDimUp = UpLengths::Size()
staticconstexpr

◆ up_lengths_

template<typename UpLengths , bool Use24BitIntegerCalculation>
UpLengths ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::up_lengths_

◆ up_lengths_scan_

template<typename UpLengths , bool Use24BitIntegerCalculation>
UpLengthsScan ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::up_lengths_scan_

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