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
362e470d
Commit
362e470d
authored
Jul 06, 2022
by
ltqin
Browse files
add sched barrier
parent
9e03ca59
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdlops_skip_b_lds_v1.hpp
...operation/gpu/grid/gridwise_gemm_xdlops_skip_b_lds_v1.hpp
+4
-4
include/ck/utility/synchronization.hpp
include/ck/utility/synchronization.hpp
+5
-1
No files found.
include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdlops_skip_b_lds_v1.hpp
View file @
362e470d
...
...
@@ -587,7 +587,7 @@ struct GridwiseGemm_k0mk1_k0nk1_mn_xdlops_skip_b_lds_v1
read_a_lds_data
();
read_b_last_half_data
();
//
s
_nop
();
s
ched_barrier
();
static_for
<
0
,
BaseMultK0
/
2
,
1
>
{}([
&
](
auto
ii
)
{
blockwise_gemm
.
Run
(
a_thread_buf
(
Number
<
ii
>
{}),
...
...
@@ -598,7 +598,7 @@ struct GridwiseGemm_k0mk1_k0nk1_mn_xdlops_skip_b_lds_v1
read_a_lds_data
();
read_b_first_half_data
();
//
s
_nop
();
s
ched_barrier
();
static_for
<
BaseMultK0
/
2
,
BaseMultK0
,
1
>
{}([
&
](
auto
ii
)
{
blockwise_gemm
.
Run
(
a_thread_buf
(
Number
<
ii
-
BaseMultK0
/
2
>
{}),
...
...
@@ -626,7 +626,7 @@ struct GridwiseGemm_k0mk1_k0nk1_mn_xdlops_skip_b_lds_v1
read_a_lds_data
();
read_b_last_half_data
();
//
s
_nop
();
s
ched_barrier
();
static_for
<
0
,
BaseMultK0
/
2
,
1
>
{}([
&
](
auto
ii
)
{
blockwise_gemm
.
Run
(
...
...
@@ -640,7 +640,7 @@ struct GridwiseGemm_k0mk1_k0nk1_mn_xdlops_skip_b_lds_v1
read_b_first_half_data
();
}
//
s
_nop
();
s
ched_barrier
();
static_for
<
BaseMultK0
/
2
,
BaseMultK0
,
1
>
{}([
&
](
auto
ii
)
{
blockwise_gemm
.
Run
(
a_thread_buf
(
Number
<
ii
-
BaseMultK0
/
2
>
{}),
...
...
include/ck/utility/synchronization.hpp
View file @
362e470d
...
...
@@ -16,11 +16,15 @@ __device__ void block_sync_lds()
__syncthreads
();
#endif
}
__device__
void
s
_nop
()
__device__
void
s
ched_barrier
()
{
#if 1
asm
volatile
(
"\
s_nop 0
\n
\
"
::
);
#else
__builtin_amdgcn_sched_barrier
(
0
);
#endif
}
__device__
void
s_barrier
()
...
...
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