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
6cc03335
Commit
6cc03335
authored
Jun 25, 2024
by
Harisankar Sadasivan
Browse files
added stream-k policies for 3 tile and 4 tile
parent
03c25255
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
include/ck/tensor_operation/gpu/grid/block_to_ctile_map.hpp
include/ck/tensor_operation/gpu/grid/block_to_ctile_map.hpp
+10
-0
profiler/include/profiler/profile_gemm_universal_streamk_impl.hpp
.../include/profiler/profile_gemm_universal_streamk_impl.hpp
+1
-1
No files found.
include/ck/tensor_operation/gpu/grid/block_to_ctile_map.hpp
View file @
6cc03335
...
@@ -1471,6 +1471,16 @@ struct BlockToCTileMap_GemmStreamK_v2
...
@@ -1471,6 +1471,16 @@ struct BlockToCTileMap_GemmStreamK_v2
{
{
sk_tiles
=
bigEnough
?
(
grid_size
+
num_tiles
%
grid_size
)
:
num_tiles
;
sk_tiles
=
bigEnough
?
(
grid_size
+
num_tiles
%
grid_size
)
:
num_tiles
;
}
}
else
if
(
streamk_sel
==
3
)
{
sk_tiles
=
(
num_tiles
>
(
2
*
grid_size
))
?
(
2
*
grid_size
+
num_tiles
%
grid_size
)
:
num_tiles
;
}
else
if
(
streamk_sel
==
4
)
{
sk_tiles
=
(
num_tiles
>
(
3
*
grid_size
))
?
(
3
*
grid_size
+
num_tiles
%
grid_size
)
:
num_tiles
;
}
sk_num_blocks
=
sk_tiles
;
sk_num_blocks
=
sk_tiles
;
// if(sk_tiles < sk_num_blocks)
// if(sk_tiles < sk_num_blocks)
// {
// {
...
...
profiler/include/profiler/profile_gemm_universal_streamk_impl.hpp
View file @
6cc03335
...
@@ -153,7 +153,7 @@ bool profile_gemm_universal_streamk_impl(int do_verification,
...
@@ -153,7 +153,7 @@ bool profile_gemm_universal_streamk_impl(int do_verification,
for
(
auto
&
op_ptr
:
op_ptrs
)
for
(
auto
&
op_ptr
:
op_ptrs
)
{
{
std
::
vector
<
int
>
grid_size_list
=
{
38
,
76
,
114
,
152
,
190
,
228
,
266
,
304
,
342
,
380
};
std
::
vector
<
int
>
grid_size_list
=
{
38
,
76
,
114
,
152
,
190
,
228
,
266
,
304
,
342
,
380
};
std
::
vector
<
int
>
streamk_sel_list
=
{
0
,
1
,
2
};
std
::
vector
<
int
>
streamk_sel_list
=
{
0
,
1
,
2
,
3
,
4
};
if
(
Grid_size
==
-
1
)
if
(
Grid_size
==
-
1
)
{
{
...
...
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