static_distributed_tensor.hpp Source File#
static_distributed_tensor.hpp
Go to the documentation of this file.
constexpr bool is_similiar_distributed_tensor_v
Definition static_distributed_tensor.hpp:230
CK_TILE_HOST_DEVICE auto get_partition_index(Distribution)
Definition tile_distribution.hpp:22
Definition tile/core/algorithm/cluster_descriptor.hpp:13
CK_TILE_HOST_DEVICE constexpr auto make_naive_tensor_descriptor_packed(const tuple< Lengths... > &lengths, number< GuaranteedLastDimensionVectorLength >=number<-1 >{})
Definition tile/core/tensor/tensor_descriptor.hpp:371
remove_cv_t< std::remove_reference_t< T > > remove_cvref_t
Definition type_traits.hpp:21
CK_TILE_HOST_DEVICE constexpr auto get_x_indices_from_distributed_indices(StaticTileDistribution tile_distribution, DistributedIndices distributed_indices)
Definition static_distributed_tensor.hpp:159
CK_TILE_HOST_DEVICE constexpr auto container_concat(const X &x, const Ys &... ys)
Definition tile/core/container/container_helper.hpp:363
CK_TILE_HOST_DEVICE constexpr auto make_static_distributed_tensor(const StaticTileDistribution &)
Definition static_distributed_tensor.hpp:142
CK_TILE_HOST_DEVICE constexpr auto to_array(const std::vector< X > &x)
Definition tile/core/container/array.hpp:286
CK_TILE_HOST_DEVICE constexpr auto make_tensor_adaptor_coordinate(const Adaptor &adaptor, const TopIndex &idx_top)
Definition tensor_adaptor_coordinate.hpp:55
CK_TILE_DEVICE void sweep_tile_span(TileDistributedSpan_, const F &f)
Definition sweep_tile.hpp:20
CK_TILE_HOST_DEVICE constexpr auto get_y_unpacks_from_x_unpacks(YLengths, number< XUnpacks >)
Definition static_distributed_tensor.hpp:197
CK_TILE_HOST_DEVICE void set_tile_if(static_distributed_tensor< DataType, StaticTileDistribution > &out_tensor, DataType value, XIndicesPredicate predicate)
Definition static_distributed_tensor.hpp:175
constexpr auto slice_sequence(Seq, number< SliceSize >, Mask=typename uniform_sequence_gen< Seq::size(), 1 >::type{})
Definition tile/core/container/sequence.hpp:1249
CK_TILE_HOST_DEVICE constexpr index_t reduce_on_sequence(Seq, Reduce f, number< Init >)
Definition tile/core/container/sequence.hpp:982
CK_TILE_HOST_DEVICE constexpr auto make_tuple(Xs &&... xs)
Definition tile/core/container/tuple.hpp:360
static_distributed_tensor< TypeY, DistY > Ty
Definition static_distributed_tensor.hpp:224
static_distributed_tensor< TypeX, DistX > Tx
Definition static_distributed_tensor.hpp:223
static constexpr bool value
Definition static_distributed_tensor.hpp:225
Definition static_distributed_tensor.hpp:215
static constexpr bool value
Definition static_distributed_tensor.hpp:216
Definition tile/core/numeric/math.hpp:98
Definition tile/core/numeric/numeric.hpp:81
Definition tile/core/container/sequence.hpp:49
Definition static_distributed_tensor.hpp:21
CK_TILE_HOST_DEVICE constexpr const DataType & operator[](TileDistributedIndices) const
Definition static_distributed_tensor.hpp:114
static constexpr index_t kThreadElementSpaceSize
Definition static_distributed_tensor.hpp:33
static CK_TILE_HOST_DEVICE constexpr auto get_lengths()
Definition static_distributed_tensor.hpp:41
static CK_TILE_HOST_DEVICE constexpr index_t get_thread_buffer_size()
Definition static_distributed_tensor.hpp:62
remove_cvref_t< decltype(StaticTileDistribution{}.get_ys_to_d_descriptor())> ThreadTensorDesc
Definition static_distributed_tensor.hpp:28
remove_cvref_t< StaticTileDistribution_ > StaticTileDistribution
Definition static_distributed_tensor.hpp:23
CK_TILE_HOST_DEVICE constexpr auto & get_thread_buffer()
Definition static_distributed_tensor.hpp:60
static CK_TILE_HOST_DEVICE constexpr auto get_distributed_spans()
Definition static_distributed_tensor.hpp:51
CK_TILE_HOST_DEVICE constexpr DataType & operator()(TileDistributedIndices)
Definition static_distributed_tensor.hpp:126
static CK_TILE_HOST_DEVICE constexpr auto get_num_of_dimension()
Definition static_distributed_tensor.hpp:36
CK_TILE_HOST_DEVICE void set_y_sliced_thread_data(sequence< YSliceOrigins... >, sequence< YSliceLengths... >, const SlicedThreadData &sliced_thread_data)
Definition static_distributed_tensor.hpp:93
CK_TILE_HOST_DEVICE auto get_y_sliced_thread_data(sequence< YSliceOrigins... >, sequence< YSliceLengths... >) const
Definition static_distributed_tensor.hpp:68
thread_buffer< DataType, get_thread_buffer_size()> thread_buf_
Definition static_distributed_tensor.hpp:138
static CK_TILE_HOST_DEVICE constexpr auto get_tile_distribution()
Definition static_distributed_tensor.hpp:46
CK_TILE_HOST_DEVICE constexpr const auto & get_thread_buffer() const
Definition static_distributed_tensor.hpp:58
remove_cvref_t< DataType_ > DataType
Definition static_distributed_tensor.hpp:22
static constexpr index_t PackedSize
Definition static_distributed_tensor.hpp:30
CK_TILE_HOST_DEVICE void initialize(const DataType &x)
Definition static_distributed_tensor.hpp:56
Definition tile/core/utility/functional.hpp:141
Definition tile/core/utility/debug.hpp:67
Definition tile_distribution.hpp:72
CK_TILE_HOST_DEVICE constexpr const auto & get_ps_ys_to_xs_adaptor() const
Definition tile_distribution.hpp:126
static CK_TILE_HOST_DEVICE constexpr auto get_y_indices_from_distributed_indices(DistributedIndices)
Definition tile_distribution.hpp:205