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
Commits
05a607f0
Commit
05a607f0
authored
Nov 30, 2022
by
Po-Yen, Chen
Browse files
Extend GEMM pipeline v1 (with IGLP strategy argument)
parent
32725c13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
include/ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v1.hpp
...k/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v1.hpp
+18
-3
No files found.
include/ck/tensor_operation/gpu/grid/gridwise_gemm_pipeline_v1.hpp
View file @
05a607f0
...
...
@@ -8,12 +8,12 @@
namespace
ck
{
template
<
index_t
NumPrefetch
>
template
<
index_t
NumPrefetch
,
index_t
IGLPOptStrategy
=
-
1
>
struct
GridwiseGemmPipeline_v1
;
// 1-stage prefetch
template
<
>
struct
GridwiseGemmPipeline_v1
<
1
>
template
<
index_t
IGLPOptStrategy
>
struct
GridwiseGemmPipeline_v1
<
1
,
IGLPOptStrategy
>
{
static
constexpr
auto
I0
=
Number
<
0
>
{};
static
constexpr
auto
I1
=
Number
<
1
>
{};
...
...
@@ -76,6 +76,14 @@ struct GridwiseGemmPipeline_v1<1>
do
{
if
constexpr
(
0
<=
IGLPOptStrategy
)
{
__builtin_amdgcn_iglp_opt
(
IGLPOptStrategy
);
#if CK_WORKAROUND_SWDEV_XXXXXX_SCHED_GROUP_DATA_HAZARD_ISSUE
__builtin_amdgcn_sched_barrier
(
0
);
#endif
}
a_blockwise_copy
.
RunRead
(
a_grid_desc
,
a_grid_buf
);
block_sync_lds
();
...
...
@@ -92,6 +100,13 @@ struct GridwiseGemmPipeline_v1<1>
a_blockwise_copy
.
RunWrite
(
a_block_desc
,
a_block_buf
);
b_blockwise_copy
.
RunWrite
(
b_block_desc
,
b_block_buf
);
if
constexpr
(
0
<=
IGLPOptStrategy
)
{
#if CK_WORKAROUND_SWDEV_XXXXXX_SCHED_GROUP_DATA_HAZARD_ISSUE
__builtin_amdgcn_sched_barrier
(
0
);
#endif
}
++
i
;
}
while
(
i
<
(
num_loop
-
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