mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-19 14:29:05 +00:00
[CK Tile] Fix building grouped conv examples in CK Tile (#2777)
* Fix compilation of the grouped conv examples. * Fix grouped conv bwd weight example output in CK Tile.
This commit is contained in:
@@ -130,7 +130,7 @@ int run_grouped_conv_bwd_weight_example_with_layouts(
|
|||||||
output_dev_buf.GetDeviceBuffer(),
|
output_dev_buf.GetDeviceBuffer(),
|
||||||
kbatch);
|
kbatch);
|
||||||
|
|
||||||
std::cout << "Run Grouped Conv Fwd kernel" << std::endl;
|
std::cout << "Run Grouped Conv Bwd Weight kernel" << std::endl;
|
||||||
std::cout << "input: " << input.mDesc << std::endl;
|
std::cout << "input: " << input.mDesc << std::endl;
|
||||||
std::cout << "weight: " << weight.mDesc << std::endl;
|
std::cout << "weight: " << weight.mDesc << std::endl;
|
||||||
std::cout << "output: " << output.mDesc << std::endl;
|
std::cout << "output: " << output.mDesc << std::endl;
|
||||||
|
|||||||
@@ -384,9 +384,8 @@ struct GroupedConvBwdDataKernelArgs
|
|||||||
|
|
||||||
static constexpr index_t MaxGroupedGemmGroupsNum = 128;
|
static constexpr index_t MaxGroupedGemmGroupsNum = 128;
|
||||||
|
|
||||||
using ABCGridDescs =
|
using ABCGridDescs = remove_cvref_t<
|
||||||
remove_cvref_t<decltype(ConvToGemmTransformer{}
|
decltype(ConvToGemmTransformer{}.MakeABCGridDescriptor_A_K0_M_K1_B_K0_N_K1_C_M_N(1))>;
|
||||||
.template MakeABCGridDescriptor_A_K0_M_K1_B_K0_N_K1_C_M_N(1))>;
|
|
||||||
|
|
||||||
using AGridDescMK = remove_cvref_t<decltype(ABCGridDescs{}[number<0>{}])>;
|
using AGridDescMK = remove_cvref_t<decltype(ABCGridDescs{}[number<0>{}])>;
|
||||||
using BGridDescNK = remove_cvref_t<decltype(ABCGridDescs{}[number<1>{}])>;
|
using BGridDescNK = remove_cvref_t<decltype(ABCGridDescs{}[number<1>{}])>;
|
||||||
|
|||||||
@@ -254,9 +254,8 @@ struct GroupedConvBwdWeightKernelArgs
|
|||||||
GemmBatch = args.G_;
|
GemmBatch = args.G_;
|
||||||
}
|
}
|
||||||
|
|
||||||
using ABCGridDescs =
|
using ABCGridDescs = remove_cvref_t<
|
||||||
remove_cvref_t<decltype(ConvToGemmTransformer{}
|
decltype(ConvToGemmTransformer{}.MakeABCGridDescriptor_A_K0_M_K1_B_K0_N_K1_C_M_N())>;
|
||||||
.template MakeABCGridDescriptor_A_K0_M_K1_B_K0_N_K1_C_M_N())>;
|
|
||||||
|
|
||||||
using AGridDescMK = remove_cvref_t<decltype(ABCGridDescs{}[number<0>{}])>;
|
using AGridDescMK = remove_cvref_t<decltype(ABCGridDescs{}[number<0>{}])>;
|
||||||
using BGridDescNK = remove_cvref_t<decltype(ABCGridDescs{}[number<1>{}])>;
|
using BGridDescNK = remove_cvref_t<decltype(ABCGridDescs{}[number<1>{}])>;
|
||||||
|
|||||||
Reference in New Issue
Block a user