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
cf01f064
Commit
cf01f064
authored
Jan 02, 2025
by
letaoqin
Browse files
change MakeGlobalTileDistribution_O
parent
7f4d6f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
include/ck_tile/ops/fused_moe/pipeline/fused_moegemm_pipeline_general_policy.hpp
...ed_moe/pipeline/fused_moegemm_pipeline_general_policy.hpp
+15
-6
No files found.
include/ck_tile/ops/fused_moe/pipeline/fused_moegemm_pipeline_general_policy.hpp
View file @
cf01f064
...
@@ -196,13 +196,22 @@ struct FusedMoeGemmPipelineGeneralPolicy
...
@@ -196,13 +196,22 @@ struct FusedMoeGemmPipelineGeneralPolicy
template
<
typename
Problem
>
template
<
typename
Problem
>
CK_TILE_HOST_DEVICE
static
constexpr
auto
MakeGlobalTileDistribution_O
()
CK_TILE_HOST_DEVICE
static
constexpr
auto
MakeGlobalTileDistribution_O
()
{
{
using
S_
=
typename
Problem
::
BlockShape
;
constexpr
int
M_Thread_Num
=
16
;
constexpr
int
M_Rep
=
S_
::
Warp_M1
/
M_Thread_Num
;
static_assert
(
M_Rep
<=
2
);
constexpr
int
N_Thread_Num
=
4
;
constexpr
int
NPerThread
=
S_
::
Warp_N1
/
N_Thread_Num
;
return
make_static_tile_distribution
(
return
make_static_tile_distribution
(
tile_distribution_encoding
<
sequence
<
1
>
,
tile_distribution_encoding
<
tuple
<
sequence
<
1
,
2
,
16
>
,
sequence
<
4
,
8
>>
,
sequence
<
4
>
,
tuple
<
sequence
<
0
,
1
>
,
sequence
<
1
,
2
>>
,
tuple
<
sequence
<
1
,
M_Rep
,
M_Thread_Num
>
,
sequence
<
N_Thread_Num
,
NPerThread
>>
,
tuple
<
sequence
<
0
,
0
>
,
sequence
<
2
,
0
>>
,
tuple
<
sequence
<
0
,
1
>
,
sequence
<
1
,
2
>>
,
sequence
<
1
,
2
>
,
tuple
<
sequence
<
0
,
0
>
,
sequence
<
2
,
0
>>
,
sequence
<
1
,
1
>>
{});
sequence
<
1
,
2
>
,
sequence
<
1
,
1
>>
{});
}
}
template
<
typename
Problem
>
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