device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp Source File#
device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp
Go to the documentation of this file.
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 index_t gcd(index_t x, index_t y)
Definition utility/math.hpp:154
__host__ __device__ constexpr auto integer_divide_floor(X x, Y y)
Definition utility/math.hpp:66
__host__ __device__ constexpr auto integer_divide_ceil(X x, Y y)
Definition utility/math.hpp:72
Definition convolution_backward_data_specialization.hpp:8
ConvolutionBackwardDataSpecialization
Definition convolution_backward_data_specialization.hpp:11
@ Filter1x1Stride1Pad0
Definition convolution_backward_data_specialization.hpp:13
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_slice_transform(const LowLength &low_length, const SliceBegin &slice_begin, const SliceEnd &slice_end)
Definition multi_index_transform_helper.hpp:163
__host__ __device__ constexpr auto make_freeze_transform(const LowerIndex &low_idx)
Definition multi_index_transform_helper.hpp:151
__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
__global__ void kernel_gemm_xdlops_v2r3(const FloatAB *__restrict__ p_a_grid, const FloatAB *__restrict__ p_b_grid, FloatC *__restrict__ p_c_grid, const AGridDesc_K0_M_K1 a_grid_desc_k0_m_k1, const BGridDesc_K0_N_K1 b_grid_desc_k0_n_k1, const CGridDesc_M_N c_grid_desc_m_n)
Definition gridwise_gemm_xdlops_v2r3.hpp:34
__host__ __device__ constexpr auto make_naive_tensor_descriptor_packed(const Tuple< Lengths... > &lengths)
Definition tensor_descriptor_helper.hpp:101
__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
Definition ck/stream_config.hpp:10
Definition gridwise_gemm_xdlops_v2r3.hpp:142
__host__ static __device__ constexpr bool CheckValidity(const AGridDesc_K0_M_K1 &a_grid_desc_k0_m_k1, const BGridDesc_K0_N_K1 &b_grid_desc_k0_n_k1, const CGridDesc_M_N &c_grid_desc_m_n)
Definition gridwise_gemm_xdlops_v2r3.hpp:356
Definition utility/sequence.hpp:43
Definition device_base.hpp:197
BaseArgument()=default
BaseInvoker()=default
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:423
const ADataType * p_a_grid_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:497
std::vector< ck::index_t > input_right_pads_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:514
std::vector< AGridDesc_K0_M_K1 > a_grid_desc_k0_m_k1_container_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:500
CDataType * p_c_grid_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:499
std::vector< CGridDesc_M_N > c_grid_desc_m_n_container_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:502
std::vector< ck::index_t > output_spatial_lengths_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:510
index_t Conv_N_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:504
std::vector< ck::index_t > conv_filter_dilations_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:512
index_t Conv_C_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:506
std::vector< ck::index_t > filter_spatial_lengths_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:509
std::vector< BGridDesc_K0_N_K1 > b_grid_desc_k0_n_k1_container_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:501
std::vector< ck::index_t > conv_filter_strides_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:511
index_t Conv_K_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:505
Argument(InDataType *p_in_grid, const WeiDataType *p_wei_grid, const 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)
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:424
const BDataType * p_b_grid_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:498
std::vector< ck::index_t > input_left_pads_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:513
std::vector< ck::index_t > input_spatial_lengths_
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:508
ck::tensor_operation::device::DeviceConv2dBwdDataXdl_Input_N_Hi_Wi_C_Weight_K_Y_X_C_Output_N_Ho_Wo_K
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:69
GridwiseGemm_k0mk1_k0nk1_mn_xdlops_v2r3< BlockSize, ABDataType, AccDataType, CDataType, InMemoryDataOperationEnum::Set, InElementwiseOperation, WeiElementwiseOperation, OutElementwiseOperation, MPerBlock, NPerBlock, K0PerBlock, MPerXDL, NPerXDL, K1, MXdlPerWave, NXdlPerWave_, ABlockTransferThreadClusterLengths_K0_M_K1, ABlockTransferThreadClusterArrangeOrder, ABlockTransferSrcAccessOrder, ABlockTransferSrcVectorDim, ABlockTransferSrcScalarPerVector, ABlockTransferDstScalarPerVector_K1, false, ABlockLdsAddExtraM, BBlockTransferThreadClusterLengths_K0_N_K1, BBlockTransferThreadClusterArrangeOrder, BBlockTransferSrcAccessOrder, BBlockTransferSrcVectorDim, BBlockTransferSrcScalarPerVector, BBlockTransferDstScalarPerVector_K1, false, BBlockLdsAddExtraN, Sequence< 2, 3, 0, 1, 7, 5, 4, 6 >, 7, CThreadTransferDstScalarPerVector > GridwiseGemmBase
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:382
static constexpr index_t NDimSpatial
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:83
remove_cvref_t< decltype(ABCGridDescs{}[I0])> AGridDesc_K0_M_K1
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:376
static constexpr auto I2
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:87
std::unique_ptr< BaseArgument > MakeArgumentPointer(void *p_in_grid, const void *p_wei_grid, const 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, WeiElementwiseOperation, OutElementwiseOperation) override
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:728
static constexpr auto K1Number
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:99
static auto MakeInvoker()
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:725
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, index_t i_ytilde, index_t i_xtilde)
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:103
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}, 0, 0)) ABCGridDescs
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:373
OutDataType ADataType
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:76
remove_cvref_t< decltype(ABCGridDescs{}[I2])> CGridDesc_M_N
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:378
InDataType CDataType
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:78
std::unique_ptr< BaseInvoker > MakeInvokerPointer() override
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:760
static constexpr auto I3
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:88
std::string GetTypeString() const override
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:765
static constexpr auto I4
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:89
static GET_NXDL_PER_WAVE_IMPL constexpr auto NXdlPerWave64
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:73
static auto MakeArgument(InDataType *p_in_grid, const WeiDataType *p_wei_grid, const 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)
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:696
GridwiseGemmBase< NXdlPerWave32 > GridwiseGemm32
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:419
static constexpr auto I0
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:85
static bool IsSupportedArgument(const Argument &arg)
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:629
remove_cvref_t< decltype(ABCGridDescs{}[I1])> BGridDesc_K0_N_K1
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:377
static constexpr auto NXdlPerWave32
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:74
InDataType ABDataType
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:81
DeviceConv2dBwdDataXdl_Input_N_Hi_Wi_C_Weight_K_Y_X_C_Output_N_Ho_Wo_K DeviceOp
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:70
WeiDataType BDataType
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:77
static constexpr auto I5
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:90
static constexpr bool IsValidCompilationParameter()
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:623
GridwiseGemmBase< math::max(NXdlPerWave64, 1)> GridwiseGemm64
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:418
bool IsSupportedArgument(const BaseArgument *p_arg) override
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:691
static constexpr auto GemmK1Number
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:100
static constexpr auto I1
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:86
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:519
INVOKER_RUN_IMPL float Run(const BaseArgument *p_arg, const StreamConfig &stream_config=StreamConfig{}) override
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:616
DeviceOp::Argument Argument
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:520
float RunImp(const Argument &arg, const StreamConfig &stream_config=StreamConfig{})
Definition device_conv2d_bwd_data_xdl_nhwc_kyxc_nhwk.hpp:523
Definition device_conv_bwd_data.hpp:25