Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
composable_kernel_ROCM
Commits
69d6660c
"magic_pdf/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "fdf47155e302330798ffa10995e200edd2a694e9"
Commit
69d6660c
authored
Jan 21, 2025
by
Adam Osewski
Browse files
A/B smem pack size taken from WarpGemm attributes
parent
e0d67738
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
include/ck_tile/ops/gemm/pipeline/gemm_universal_pipeline_ag_bg_cr_policy.hpp
...gemm/pipeline/gemm_universal_pipeline_ag_bg_cr_policy.hpp
+6
-10
No files found.
include/ck_tile/ops/gemm/pipeline/gemm_universal_pipeline_ag_bg_cr_policy.hpp
View file @
69d6660c
...
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment