thread_buffer.hpp Source File#
thread_buffer.hpp
Go to the documentation of this file.
64 template <index_t I> CK_TILE_HOST_DEVICE constexpr const auto& at(number<I>) const { return get(I); }
99 [&](auto j) { vx.sub_data(j) = operator[]((is * number<sizeof(X_)/sizeof(value_type)>{}) + j); });
119 [&](auto j) { operator()((is * number<sizeof(X_)/sizeof(value_type)>{}) + j) = vx.sub_data[j]; });
134 return _get_as<Tx>(); // TODO: current compiler for 8bit data need use union to get data back, should fix in the future
143 return _get_as<Tx>(number<I>{}); // TODO: current compiler for 8bit data need use union to get data back, should fix in the future
149 template <typename Tx, index_t I> CK_TILE_HOST_DEVICE constexpr void set_as(number<I>, const Tx & x)
Definition tile/core/algorithm/cluster_descriptor.hpp:13
CK_TILE_HOST_DEVICE constexpr auto make_thread_buffer(Ts &&... ts)
Definition thread_buffer.hpp:17
remove_cv_t< std::remove_reference_t< T > > remove_cvref_t
Definition type_traits.hpp:21
typename std::remove_reference< T >::type remove_reference_t
Definition type_traits.hpp:15
typename impl::tuple_array_impl< T, N >::type tuple_array
Definition tile/core/container/tuple.hpp:28
CK_TILE_HOST_DEVICE constexpr details::return_type< D, Ts... > make_array(Ts &&... ts)
Definition tile/core/container/array.hpp:242
CK_TILE_HOST_DEVICE constexpr auto make_tuple(Xs &&... xs)
Definition tile/core/container/tuple.hpp:360
Definition tile/core/utility/debug.hpp:67
Definition vector_type.hpp:90
static constexpr index_t vector_size
Definition vector_type.hpp:98
std::conditional_t< std::is_same_v< remove_cvref_t< T >, pk_int4_t >, int8_t, std::conditional_t< std::is_same_v< remove_cvref_t< T >, pk_fp4_t >|| std::is_same_v< remove_cvref_t< T >, e8m0_t >, uint8_t, remove_cvref_t< T > > > scalar_type
Definition vector_type.hpp:91