"magic_pdf/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "fdf47155e302330798ffa10995e200edd2a694e9"
Commit 69d6660c authored by Adam Osewski's avatar Adam Osewski
Browse files

A/B smem pack size taken from WarpGemm attributes

parent e0d67738
......@@ -170,21 +170,17 @@ struct UniversalGemmPipelineAgBgCrPolicy
template <typename Problem>
CK_TILE_HOST_DEVICE static constexpr auto GetSmemPackA()
{
using ADataType = remove_cvref_t<typename Problem::ADataType>;
constexpr index_t MPerBlock = Problem::BlockGemmShape::kM;
// TODO: this not alwyas has to be ture, sometimes we may want different KPack value.
return GetGlobalVectorLoadSize<Problem, ADataType, MPerBlock>();
using BlockGemm = decltype(GetBlockGemm<Problem>());
constexpr index_t KPack = BlockGemm::Traits::KPack;
return KPack;
}
template <typename Problem>
CK_TILE_HOST_DEVICE static constexpr auto GetSmemPackB()
{
using BDataType = remove_cvref_t<typename Problem::BDataType>;
constexpr index_t NPerBlock = Problem::BlockGemmShape::kN;
// TODO: this not alwyas has to be ture, sometimes we may want different KPack value.
return GetGlobalVectorLoadSize<Problem, BDataType, NPerBlock>();
using BlockGemm = decltype(GetBlockGemm<Problem>());
constexpr index_t KPack = BlockGemm::Traits::KPack;
return KPack;
}
template <typename Problem>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment