pass_through< LowLength > Struct Template Reference

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

Composable Kernel: ck_tile::pass_through< LowLength > Struct Template Reference

#include <coordinate_transform.hpp>

Inheritance diagram for ck_tile::pass_through< LowLength >:
ck_tile::base_transform< 1, 1 >

Public Types

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

Public Member Functions

CK_TILE_HOST_DEVICE constexpr pass_through ()=default
CK_TILE_HOST_DEVICE constexpr pass_through (const LowLength &low_length)
CK_TILE_HOST_DEVICE constexpr const auto & get_upper_lengths () const

Static Public Member Functions

static CK_TILE_HOST_DEVICE constexpr auto get_type_enum ()
template<typename LowIdx, typename UpIdx>
static CK_TILE_HOST_DEVICE constexpr void calculate_lower_index (LowIdx &idx_low, const UpIdx &idx_up)
template<typename LowIdxDiff, typename UpIdxDiff, typename LowIdx, typename UpIdx>
static CK_TILE_HOST_DEVICE void update_lower_index (LowIdxDiff &idx_diff_low, const UpIdxDiff &idx_diff_up, LowIdx &idx_low, const UpIdx &)
static CK_TILE_HOST_DEVICE constexpr bool is_valid_upper_index_always_mapped_to_valid_lower_index ()
template<typename UpIdx>
static CK_TILE_HOST_DEVICE constexpr bool is_valid_upper_index_mapped_to_valid_lower_index (const UpIdx &)
static CK_TILE_HOST_DEVICE constexpr bool is_known_at_compile_time ()
template<typename LowVectorLengths, typename LowVectorStrides>
static CK_TILE_HOST_DEVICE constexpr auto calculate_upper_dimension_safe_vector_length_strides (const LowVectorLengths &low_vector_lengths, const LowVectorStrides &low_vector_strides)
Static Public Member Functions inherited from ck_tile::base_transform< 1, 1 >
static CK_TILE_HOST_DEVICE constexpr auto get_type_enum ()
static CK_TILE_HOST_DEVICE constexpr index_t get_num_of_lower_dimension ()
static CK_TILE_HOST_DEVICE constexpr index_t get_num_of_upper_dimension ()
static CK_TILE_HOST_DEVICE constexpr auto calculate_upper_dimension_safe_vector_length_strides (const LowVectorLengths &, const LowVectorStrides &)

Public Attributes

UpLengths up_lengths_

Static Public Attributes

static constexpr auto type_enum = coord_transform_enum::pass_through

Member Typedef Documentation

◆ LowerIndex

template<typename LowLength>
using ck_tile::pass_through< LowLength >::LowerIndex = multi_index<1>

◆ UpLengths

template<typename LowLength>
using ck_tile::pass_through< LowLength >::UpLengths = decltype(make_tuple(LowLength{}))

◆ UpperIndex

template<typename LowLength>
using ck_tile::pass_through< LowLength >::UpperIndex = multi_index<1>

Constructor & Destructor Documentation

◆ pass_through() [1/2]

template<typename LowLength>
CK_TILE_HOST_DEVICE constexpr ck_tile::pass_through< LowLength >::pass_through ( )
constexprdefault

◆ pass_through() [2/2]

template<typename LowLength>
CK_TILE_HOST_DEVICE constexpr ck_tile::pass_through< LowLength >::pass_through ( const LowLength & low_length)
inlineconstexpr

Member Function Documentation

◆ calculate_lower_index()

template<typename LowLength>
template<typename LowIdx, typename UpIdx>
CK_TILE_HOST_DEVICE constexpr void ck_tile::pass_through< LowLength >::calculate_lower_index ( LowIdx & idx_low,
const UpIdx & idx_up )
inlinestaticconstexpr

◆ calculate_upper_dimension_safe_vector_length_strides()

template<typename LowLength>
template<typename LowVectorLengths, typename LowVectorStrides>
CK_TILE_HOST_DEVICE constexpr auto ck_tile::pass_through< LowLength >::calculate_upper_dimension_safe_vector_length_strides ( const LowVectorLengths & low_vector_lengths,
const LowVectorStrides & low_vector_strides )
inlinestaticconstexpr

◆ get_type_enum()

template<typename LowLength>
CK_TILE_HOST_DEVICE constexpr auto ck_tile::pass_through< LowLength >::get_type_enum ( )
inlinestaticconstexpr

◆ get_upper_lengths()

template<typename LowLength>
CK_TILE_HOST_DEVICE constexpr const auto & ck_tile::pass_through< LowLength >::get_upper_lengths ( ) const
inlineconstexpr

◆ is_known_at_compile_time()

template<typename LowLength>
CK_TILE_HOST_DEVICE constexpr bool ck_tile::pass_through< LowLength >::is_known_at_compile_time ( )
inlinestaticconstexpr

◆ is_valid_upper_index_always_mapped_to_valid_lower_index()

template<typename LowLength>
CK_TILE_HOST_DEVICE constexpr bool ck_tile::pass_through< LowLength >::is_valid_upper_index_always_mapped_to_valid_lower_index ( )
inlinestaticconstexpr

◆ is_valid_upper_index_mapped_to_valid_lower_index()

template<typename LowLength>
template<typename UpIdx>
CK_TILE_HOST_DEVICE constexpr bool ck_tile::pass_through< LowLength >::is_valid_upper_index_mapped_to_valid_lower_index ( const UpIdx & )
inlinestaticconstexpr

◆ update_lower_index()

template<typename LowLength>
template<typename LowIdxDiff, typename UpIdxDiff, typename LowIdx, typename UpIdx>
CK_TILE_HOST_DEVICE void ck_tile::pass_through< LowLength >::update_lower_index ( LowIdxDiff & idx_diff_low,
const UpIdxDiff & idx_diff_up,
LowIdx & idx_low,
const UpIdx &  )
inlinestatic

Member Data Documentation

◆ type_enum

template<typename LowLength>
auto ck_tile::pass_through< LowLength >::type_enum = coord_transform_enum::pass_through
staticconstexpr

◆ up_lengths_

template<typename LowLength>
UpLengths ck_tile::pass_through< LowLength >::up_lengths_

The documentation for this struct was generated from the following file: