moe_smoothquant_kernel.hpp Source File#
moe_smoothquant_kernel.hpp
Go to the documentation of this file.
127 return _SS_("moe_smoothquant_") + _SS_(t2s<XDataType>::name) + "_" + _SS_(t2s<QYDataType>::name) + "_" +
128 _TS_(S_::Block_M) + "x" + _TS_(S_::Block_N) + "_" + _TS_(S_::WarpPerBlock_M) + "x" + _TS_(S_::WarpPerBlock_N) + "_" +
#define _TS_
#define _SS_
Definition tile/core/algorithm/cluster_descriptor.hpp:13
remove_cv_t< std::remove_reference_t< T > > remove_cvref_t
Definition type_traits.hpp:21
CK_TILE_HOST_DEVICE constexpr auto make_naive_tensor_view(DataType *__restrict__ p, const tuple< Lengths... > &lengths, const tuple< Strides... > &strides, number< GuaranteedLastDimensionVectorLength >=number<-1 >{}, number< GuaranteedLastDimensionVectorStride >=number<-1 >{})
Definition tensor_view.hpp:471
__device__ uint32_t amd_wave_read_first_lane(uint16_t v)
Definition tile/core/arch/amd_buffer_addressing.hpp:35
CK_TILE_DEVICE constexpr auto make_tile_window(null_tensor_view, const WindowLengths &window_lengths, const multi_index< WindowLengths::size()> &, Ts &&...)
Definition null_tile_window.hpp:75
CK_TILE_HOST_DEVICE constexpr auto integer_divide_ceil(X x, Y y)
Definition tile/core/numeric/math.hpp:149
CK_TILE_HOST_DEVICE constexpr auto pad_tensor_view(const TensorView &tensor_view, const TileLengths &tile_lengths, DoPads)
Definition tensor_view.hpp:530
CK_TILE_HOST_DEVICE constexpr auto make_tuple(Xs &&... xs)
Definition tile/core/container/tuple.hpp:360
Definition moe_smoothquant_kernel.hpp:59
const void * p_smscale
Definition moe_smoothquant_kernel.hpp:61
const void * p_topk_ids
Definition moe_smoothquant_kernel.hpp:62
index_t hidden_size
Definition moe_smoothquant_kernel.hpp:68
static constexpr const char * name
Definition moe_smoothquant_kernel.hpp:106
static constexpr const char * name
Definition moe_smoothquant_kernel.hpp:108
static constexpr const char * name
Definition moe_smoothquant_kernel.hpp:105
static constexpr const char * name
Definition moe_smoothquant_kernel.hpp:107
static constexpr const char * name
Definition moe_smoothquant_kernel.hpp:109
static constexpr const char * name
Definition moe_smoothquant_kernel.hpp:104
Definition moe_smoothquant_kernel.hpp:103
Definition moe_smoothquant_kernel.hpp:13
index_t hidden_size
Definition moe_smoothquant_kernel.hpp:22
const void * p_topk_ids
Definition moe_smoothquant_kernel.hpp:16
const void * p_smscale
Definition moe_smoothquant_kernel.hpp:15
Definition moe_smoothquant_kernel.hpp:32
static constexpr bool kTwoPass
Definition moe_smoothquant_kernel.hpp:46
remove_cvref_t< typename Problem::SmoothScaleDataType > SmoothScaleDataType
Definition moe_smoothquant_kernel.hpp:37
CK_TILE_DEVICE void operator()(Kargs kargs) const
Definition moe_smoothquant_kernel.hpp:136
remove_cvref_t< typename Problem::YScaleDataType > YScaleDataType
Definition moe_smoothquant_kernel.hpp:39
static CK_TILE_HOST constexpr auto GridSize(const Hargs &hargs)
Definition moe_smoothquant_kernel.hpp:91
remove_cvref_t< typename Problem::QYDataType > QYDataType
Definition moe_smoothquant_kernel.hpp:40
remove_cvref_t< typename Problem::ComputeDataType > ComputeDataType
Definition moe_smoothquant_kernel.hpp:38
remove_cvref_t< Pipeline_ > Pipeline
Definition moe_smoothquant_kernel.hpp:33
remove_cvref_t< typename Problem::XDataType > XDataType
Definition moe_smoothquant_kernel.hpp:36
static constexpr index_t Vector_N
Definition moe_smoothquant_kernel.hpp:49
static CK_TILE_HOST constexpr auto BlockSize()
Definition moe_smoothquant_kernel.hpp:96
static CK_TILE_HOST constexpr Kargs MakeKargs(const Hargs &hargs)
Definition moe_smoothquant_kernel.hpp:76
static constexpr index_t Block_N
Definition moe_smoothquant_kernel.hpp:43
static CK_TILE_HOST std::string GetName()
Definition moe_smoothquant_kernel.hpp:115
typename Pipeline::Problem Problem
Definition moe_smoothquant_kernel.hpp:34
static CK_TILE_HOST_DEVICE constexpr index_t GetSmemSize()
Definition moe_smoothquant_kernel.hpp:113
static constexpr index_t Repeat_N
Definition moe_smoothquant_kernel.hpp:50
static constexpr index_t ThreadPerWarp_N
Definition moe_smoothquant_kernel.hpp:48
static constexpr index_t kBlockSize
Definition moe_smoothquant_kernel.hpp:51
static constexpr index_t Block_M
Definition moe_smoothquant_kernel.hpp:42
Definition tile/core/container/sequence.hpp:49