device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp Source File#
device_conv2d_fwd_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 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
@ 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
__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_fwd_xdl_nhwc_kyxc_nhwk.hpp:373
CGridDesc_M_N c_grid_desc_m_n_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:424
index_t Conv_C_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:428
std::vector< index_t > input_left_pads_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:431
const ADataType * p_a_grid_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:419
CDataType * p_c_grid_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:421
index_t Conv_K_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:427
const BDataType * p_b_grid_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:420
index_t Conv_N_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:426
AGridDesc_K0_M_K1 a_grid_desc_k0_m_k1_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:422
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)
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:374
std::vector< index_t > input_right_pads_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:432
std::vector< index_t > conv_filter_strides_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:430
std::vector< index_t > filter_spatial_lengths_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:429
BGridDesc_K0_N_K1 b_grid_desc_k0_n_k1_
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:423
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:437
INVOKER_RUN_IMPL float Run(const BaseArgument *p_arg, const StreamConfig &stream_config=StreamConfig{}) override
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:523
DeviceOp::Argument Argument
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:438
float RunImp(const Argument &arg, const StreamConfig &stream_config=StreamConfig{})
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:441
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:69
OutDataType CDataType
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:78
std::string GetTypeString() const override
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:674
static constexpr auto K1Number
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:90
static auto MakeInvoker()
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:634
static bool IsSupportedArgument(const Argument &arg)
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:536
static constexpr auto GemmK1Number
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:91
bool IsSupportedArgument(const BaseArgument *p_arg) override
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:600
static GET_NXDL_PER_WAVE_IMPL constexpr auto NXdlPerWave64
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:73
InDataType ABDataType
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:81
InDataType ADataType
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:76
remove_cvref_t< decltype(ABCGridDescs{}[I2])> CGridDesc_M_N
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:328
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, WeiElementwiseOperation, OutElementwiseOperation) override
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:637
GridwiseGemmBase< math::max(NXdlPerWave64, 1)> GridwiseGemm64
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:368
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, 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, Sequence< 2, 3, 0, 1, 7, 5, 4, 6 >, 7, CThreadTransferDstScalarPerVector > GridwiseGemmBase
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:332
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_nhwc_kyxc_nhwk.hpp:94
DeviceConv2dFwdXdl_Input_N_Hi_Wi_C_Weight_K_Y_X_C_Output_N_Ho_Wo_K DeviceOp
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:70
WeiDataType BDataType
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:77
remove_cvref_t< decltype(ABCGridDescs{}[I0])> AGridDesc_K0_M_K1
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:326
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_nhwc_kyxc_nhwk.hpp:323
GridwiseGemmBase< NXdlPerWave32 > GridwiseGemm32
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:369
std::unique_ptr< BaseInvoker > MakeInvokerPointer() override
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:669
ck::tensor_operation::device::DeviceConv2dFwdXdl_Input_N_Hi_Wi_C_Weight_K_Y_X_C_Output_N_Ho_Wo_K::I1
static constexpr auto I1
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:86
ck::tensor_operation::device::DeviceConv2dFwdXdl_Input_N_Hi_Wi_C_Weight_K_Y_X_C_Output_N_Ho_Wo_K::I3
static constexpr auto I3
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:88
static constexpr bool IsValidCompilationParameter()
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:530
static constexpr index_t NDimSpatial
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:83
ck::tensor_operation::device::DeviceConv2dFwdXdl_Input_N_Hi_Wi_C_Weight_K_Y_X_C_Output_N_Ho_Wo_K::I2
static constexpr auto I2
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:87
remove_cvref_t< decltype(ABCGridDescs{}[I1])> BGridDesc_K0_N_K1
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:327
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)
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:605
static constexpr auto NXdlPerWave32
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:74
ck::tensor_operation::device::DeviceConv2dFwdXdl_Input_N_Hi_Wi_C_Weight_K_Y_X_C_Output_N_Ho_Wo_K::I0
static constexpr auto I0
Definition device_conv2d_fwd_xdl_nhwc_kyxc_nhwk.hpp:85
Definition device_conv_fwd.hpp:25