device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp Source File#
device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp
Go to the documentation of this file.
59 typename CBlockTransferClusterLengths_MBlock_MXdlPerWave_MWaveMPerXdl_NBlock_NXdlPerWave_NWaveNPerXdl,
float launch_and_time_kernel(const StreamConfig &stream_config, F kernel, dim3 grid_dim, dim3 block_dim, std::size_t lds_byte, Args... args)
Definition host_utility/kernel_launch.hpp:14
__host__ __device__ constexpr auto integer_least_multiple(X x, Y y)
Definition utility/math.hpp:78
Definition convolution_backward_data_specialization.hpp:8
ConvolutionForwardSpecialization
Definition convolution_forward_specialization.hpp:15
@ OddC
Definition convolution_forward_specialization.hpp:19
@ Filter1x1Stride1Pad0
Definition convolution_forward_specialization.hpp:18
@ Filter1x1Pad0
Definition convolution_forward_specialization.hpp:17
std::string getConvForwardSpecializationString(const ConvolutionForwardSpecialization &s)
Definition convolution_forward_specialization.hpp:24
Definition convolution_backward_data_specialization.hpp:7
Definition ck.hpp:268
__host__ __device__ constexpr auto make_pass_through_transform(const LowLength &low_length)
Definition multi_index_transform_helper.hpp:12
__host__ __device__ constexpr auto make_right_pad_transform(const LowLength &low_length, const RightPadLength &right_pad, integral_constant< bool, SkipIsValidCheck >=integral_constant< bool, false >{})
Definition multi_index_transform_helper.hpp:37
__host__ __device__ constexpr auto make_pad_transform(const LowLength &low_length, const LeftPad &left_pad, const RightPad &right_pad, integral_constant< bool, SkipIsValidCheck >=integral_constant< bool, false >{})
Definition multi_index_transform_helper.hpp:19
__host__ __device__ constexpr auto make_embed_transform(const UpLengths &up_lengths, const Coefficients &coefficients)
Definition multi_index_transform_helper.hpp:48
__host__ __device__ constexpr auto make_merge_transform(const LowLengths &low_lengths)
Definition multi_index_transform_helper.hpp:55
__host__ __device__ constexpr auto make_naive_tensor_descriptor_packed(const Tuple< Lengths... > &lengths)
Definition tensor_descriptor_helper.hpp:101
typename remove_reference< T >::type remove_reference_t
Definition type.hpp:292
__host__ __device__ constexpr auto make_tuple(Xs &&... xs)
Definition utility/tuple.hpp:211
__host__ __device__ constexpr auto transform_tensor_descriptor(const OldTensorDescriptor &old_tensor_desc, const NewTransforms &new_transforms, NewLowerDimensionOldVisibleIdss, NewUpperDimensionNewVisibleIdss)
Definition tensor_description/tensor_descriptor.hpp:319
__host__ __device__ constexpr auto make_unmerge_transform(const UpLengths &up_lengths, integral_constant< bool, Use24BitIntegerCalculation >=integral_constant< bool, false >{})
Definition multi_index_transform_helper.hpp:90
__global__ void kernel_gemm_xdlops_v3r1(const FloatAB *__restrict__ p_a_grid, const FloatAB *__restrict__ p_b_grid, FloatC *__restrict__ p_c_grid, const AGridDesc_AK0_M_AK1 a_grid_desc_ak0_m_ak1, const BGridDesc_BK0_N_BK1 b_grid_desc_bk0_n_bk1, const CGridDescriptor_MBlock_MXdlPerWave_MWaveMPerXdl_NBlock_NXdlPerWave_NWaveNPerXdl c_grid_desc_mblock_mxdlperwave_mwavemperxdl_nblock_nxdlperwave_nwavenperxdl, const AElementwiseOperation a_element_op, const BElementwiseOperation b_element_op, const CElementwiseOperation c_element_op, const Block2CTileMap block_2_ctile_map)
Definition gridwise_gemm_xdlops_v3r1.hpp:36
Definition ck/stream_config.hpp:10
Definition block_to_ctile_map.hpp:24
__host__ constexpr index_t CalculateGridSize(const CGridDesc_M_N &c_grid_desc_m_n) const
Definition block_to_ctile_map.hpp:38
Definition gridwise_gemm_xdlops_v3r1.hpp:127
__host__ static __device__ constexpr bool CheckValidity(const AGridDesc_K0_M_K1 &a_grid_desc_ak0_m_ak1, const BGridDesc_K0_N_K1 &b_grid_desc_bk0_n_bk1, const CGridDesc_M_N &c_grid_desc_m_n, const Block2CTileMap &block_2_ctile_map)
Definition gridwise_gemm_xdlops_v3r1.hpp:256
Definition utility/sequence.hpp:43
Definition device_base.hpp:197
BaseArgument()=default
BaseInvoker()=default
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:488
AGridDesc_K0_M_K1 a_grid_desc_k0_m_k1_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:547
const BDataType * p_b_grid_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:545
WeiElementwiseOperation wei_element_op_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:552
std::vector< index_t > output_spatial_lengths_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:560
index_t Conv_C_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:557
Argument(const InDataType *p_in_grid, const WeiDataType *p_wei_grid, OutDataType *p_out_grid, ck::index_t N, ck::index_t K, ck::index_t C, std::vector< ck::index_t > input_spatial_lengths, std::vector< ck::index_t > filter_spatial_lengths, std::vector< ck::index_t > output_spatial_lengths, std::vector< ck::index_t > conv_filter_strides, std::vector< ck::index_t > conv_filter_dilations, std::vector< ck::index_t > input_left_pads, std::vector< ck::index_t > input_right_pads, InElementwiseOperation in_element_op, WeiElementwiseOperation wei_element_op, OutElementwiseOperation out_element_op)
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:489
index_t Conv_N_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:555
std::vector< index_t > input_left_pads_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:563
std::vector< index_t > filter_spatial_lengths_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:559
CGridDesc_M_N c_grid_desc_m_n_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:549
BGridDesc_K0_N_K1 b_grid_desc_k0_n_k1_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:548
std::vector< index_t > conv_filter_dilations_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:562
index_t Conv_K_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:556
std::vector< index_t > input_right_pads_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:564
std::vector< index_t > conv_filter_strides_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:561
OutElementwiseOperation out_element_op_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:553
InElementwiseOperation in_element_op_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:551
Block2CTileMap block_2_ctile_map_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:550
std::vector< index_t > input_spatial_lengths_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:558
CDataType * p_c_grid_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:546
const ADataType * p_a_grid_
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:544
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:569
DeviceOp::Argument Argument
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:570
float RunImp(const Argument &arg, const StreamConfig &stream_config=StreamConfig{})
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:573
INVOKER_RUN_IMPL float Run(const BaseArgument *p_arg, const StreamConfig &stream_config=StreamConfig{}) override
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:722
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:72
remove_cvref_t< decltype(ABCGridDescs{}[I1])> BGridDesc_K0_N_K1
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:434
static constexpr auto I5
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:93
static auto MakeArgument(const InDataType *p_in_grid, const WeiDataType *p_wei_grid, OutDataType *p_out_grid, ck::index_t N, ck::index_t K, ck::index_t C, std::vector< ck::index_t > input_spatial_lengths, std::vector< ck::index_t > filter_spatial_lengths, std::vector< ck::index_t > output_spatial_lengths, std::vector< ck::index_t > conv_filter_strides, std::vector< ck::index_t > conv_filter_dilations, std::vector< ck::index_t > input_left_pads, std::vector< ck::index_t > input_right_pads, InElementwiseOperation in_element_op, WeiElementwiseOperation wei_element_op, OutElementwiseOperation out_element_op)
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:808
static constexpr auto I3
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:91
bool IsSupportedArgument(const BaseArgument *p_arg) override
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:803
OutDataType CDataType
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:81
WeiDataType BDataType
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:80
static constexpr auto GemmK1Number
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:96
DeviceConv2dFwdXdl_C_Shuffle_Input_N_Hi_Wi_C_Weight_K_Y_X_C_Output_N_Ho_Wo_K DeviceOp
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:73
static constexpr auto NXdlPerWave32
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:77
static bool IsSupportedArgument(const Argument &arg)
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:735
GridwiseGemm_k0mk1_k0nk1_mn_xdlops_v3r1< BlockSize, ABDataType, AccDataType, CDataType, CDataType, InMemoryDataOperationEnum::Set, AGridDesc_K0_M_K1, BGridDesc_K0_N_K1, CGridDesc_M_N, InElementwiseOperation, WeiElementwiseOperation, OutElementwiseOperation, MPerBlock, NPerBlock, K0PerBlock *K1, K1, K1, MPerXDL, NPerXDL, MXdlPerWave, NXdlPerWave_, ABlockTransferThreadClusterLengths_K0_M_K1, Sequence< 1, 0, 2 >, Sequence< 1, 0, 2 >, 2, ABlockTransferSrcScalarPerVector, ABlockTransferDstScalarPerVector_K1, false, ABlockLdsAddExtraM, BBlockTransferThreadClusterLengths_K0_N_K1, Sequence< 1, 0, 2 >, Sequence< 1, 0, 2 >, 2, BBlockTransferSrcScalarPerVector, BBlockTransferDstScalarPerVector_K1, false, BBlockLdsAddExtraN, CShuffleMXdlPerWavePerShuffle, CShuffleNXdlPerWavePerShuffle, CBlockTransferClusterLengths_MBlock_MXdlPerWave_MWaveMPerXdl_NBlock_NXdlPerWave_NWaveNPerXdl, CBlockTransferScalarPerVector_NWaveNPerXdl > GridwiseGemmBase
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:441
InDataType ABDataType
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:84
std::string GetTypeString() const override
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:886
static constexpr index_t NDimSpatial
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:86
static constexpr auto I0
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:88
static constexpr auto I2
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:90
static auto MakeInvoker()
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:843
remove_cvref_t< decltype(ABCGridDescs{}[I0])> AGridDesc_K0_M_K1
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:433
static constexpr bool IsValidCompilationParameter()
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:729
remove_cvref_t< decltype(ABCGridDescs{}[I2])> CGridDesc_M_N
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:435
GridwiseGemmBase< math::max(NXdlPerWave64, 1)> GridwiseGemm64
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:483
static constexpr auto I4
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:92
decltype(MakeABCGridDescriptor_A_K0_M_K1_B_K0_N_K1_C_M_N( 1, 1, 1, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1})) ABCGridDescs
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:430
static constexpr auto I1
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:89
static GET_NXDL_PER_WAVE_IMPL constexpr auto NXdlPerWave64
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:76
BlockToCTileMap_M00_N0_M01< MPerBlock, NPerBlock, CGridDesc_M_N > Block2CTileMap
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:437
static auto MakeABCGridDescriptor_A_K0_M_K1_B_K0_N_K1_C_M_N(ck::index_t N, ck::index_t K, ck::index_t C, std::vector< ck::index_t > input_spatial_lengths, std::vector< ck::index_t > filter_spatial_lengths, std::vector< ck::index_t > output_spatial_lengths, std::vector< ck::index_t > conv_filter_strides, std::vector< ck::index_t > conv_filter_dilations, std::vector< ck::index_t > input_left_pads, std::vector< ck::index_t > input_right_pads)
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:99
GridwiseGemmBase< math::max(NXdlPerWave32, 1)> GridwiseGemm32
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:484
static constexpr auto K1Number
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:95
std::unique_ptr< BaseInvoker > MakeInvokerPointer() override
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:881
std::unique_ptr< BaseArgument > MakeArgumentPointer(const void *p_in_grid, const void *p_wei_grid, void *p_out_grid, ck::index_t N, ck::index_t K, ck::index_t C, std::vector< ck::index_t > input_spatial_lengths, std::vector< ck::index_t > filter_spatial_lengths, std::vector< ck::index_t > output_spatial_lengths, std::vector< ck::index_t > conv_filter_strides, std::vector< ck::index_t > conv_filter_dilations, std::vector< ck::index_t > input_left_pads, std::vector< ck::index_t > input_right_pads, InElementwiseOperation in_element_op, WeiElementwiseOperation wei_element_op, OutElementwiseOperation out_element_op) override
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:846
InDataType ADataType
Definition device_conv2d_fwd_xdl_c_shuffle_nhwc_kyxc_nhwk.hpp:79
Definition device_conv_fwd.hpp:25