mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-07-01 04:07:56 +00:00
Check that number of convolution groups is multiple of merged groups.
This commit is contained in:
@@ -626,17 +626,17 @@ struct GroupedConvolutionBackwardWeightKernel
|
||||
return false;
|
||||
}
|
||||
|
||||
// if constexpr (GroupedConvTraitsType_::NumGroupsToMerge > 1)
|
||||
// {
|
||||
// const index_t ConvG = kargs.wei_g_k_c_xs_lengths[number<0>{}];
|
||||
// if (ConvG % GroupedConvTraitsType_::NumGroupsToMerge != 0)
|
||||
// {
|
||||
// CK_TILE_ERROR("ConvG must be a multiple of NumGroupsToMerge!");
|
||||
// return false;
|
||||
// }
|
||||
if constexpr(GroupedConvTraitsType_::NumGroupsToMerge > 1)
|
||||
{
|
||||
const index_t ConvG = kargs.wei_g_k_c_xs_lengths[number<0>{}];
|
||||
if(ConvG % GroupedConvTraitsType_::NumGroupsToMerge != 0)
|
||||
{
|
||||
CK_TILE_ERROR("ConvG must be a multiple of NumGroupsToMerge!");
|
||||
return false;
|
||||
}
|
||||
|
||||
// // TODO: Should we also check that GemmM <= MPerBlock and GemmN <= NPerBlock?
|
||||
// }
|
||||
// TODO: Should we also check that GemmM <= MPerBlock and GemmN <= NPerBlock?
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user