diff --git a/include/ck_tile/ops/flatmm/pipeline/flatmm_pipeline_agmem_bgmem_creg_v1_policy.hpp b/include/ck_tile/ops/flatmm/pipeline/flatmm_pipeline_agmem_bgmem_creg_v1_policy.hpp old mode 100755 new mode 100644 index 31c080c520..57e58b24f0 --- a/include/ck_tile/ops/flatmm/pipeline/flatmm_pipeline_agmem_bgmem_creg_v1_policy.hpp +++ b/include/ck_tile/ops/flatmm/pipeline/flatmm_pipeline_agmem_bgmem_creg_v1_policy.hpp @@ -229,13 +229,13 @@ struct UniversalFlatmmPipelineAgBgCrPolicy template CK_TILE_HOST_DEVICE static constexpr index_t GetSmemPackA() { - using A = remove_cvref_t; - using BlockGemm = remove_cvref_t())>; + using A = remove_cvref_t; + using BlockFlatmm = remove_cvref_t())>; - constexpr index_t KPack = static_cast(BlockGemm::Traits::KPack); - constexpr index_t VecElems = static_cast(Problem::VectorLoadSize / sizeof(A)); + constexpr index_t KPack = BlockFlatmm::BlockPolicy::WarpGemm::kKPerThread; + constexpr index_t VecElems = Problem::VectorLoadSize / sizeof(A); - return (KPack < VecElems) ? KPack : VecElems; + return min(KPack, VecElems); } template