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
8831b0d8
Commit
8831b0d8
authored
Feb 16, 2024
by
Jing Zhang
Browse files
fixed block_sync_lds
parent
28d672d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
include/ck/ck.hpp
include/ck/ck.hpp
+1
-1
include/ck/host_utility/device_prop.hpp
include/ck/host_utility/device_prop.hpp
+1
-4
include/ck/utility/synchronization.hpp
include/ck/utility/synchronization.hpp
+8
-0
No files found.
include/ck/ck.hpp
View file @
8831b0d8
...
...
@@ -155,7 +155,7 @@
#define CK_USE_SR_F8_CONVERSION 1
// block synchronization only s_wait lgkmcnt(0), not vmcnt(0)
#define CK_EXPERIMENTAL_BLOCK_SYNC_LDS_WITHOUT_SYNC_VMEM
0
#define CK_EXPERIMENTAL_BLOCK_SYNC_LDS_WITHOUT_SYNC_VMEM
1
// experimental feature: multi index implemented as array
#define CK_EXPERIMENTAL_USE_DYNAMICALLY_INDEXED_MULTI_INDEX 0
...
...
include/ck/host_utility/device_prop.hpp
View file @
8831b0d8
...
...
@@ -85,9 +85,6 @@ inline bool is_navi3_supported()
ck
::
get_device_name
()
==
"gfx1102"
||
ck
::
get_device_name
()
==
"gfx1103"
;
}
inline
bool
is_navi4_supported
()
{
return
ck
::
get_device_name
()
==
"gfx1200"
;
}
inline
bool
is_navi4_supported
()
{
return
ck
::
get_device_name
()
==
"gfx1200"
;
}
}
// namespace ck
include/ck/utility/synchronization.hpp
View file @
8831b0d8
...
...
@@ -10,10 +10,18 @@ namespace ck {
__device__
void
block_sync_lds
()
{
#if CK_EXPERIMENTAL_BLOCK_SYNC_LDS_WITHOUT_SYNC_VMEM
#ifdef __gfx12__
asm
volatile
(
"\
s_wait_dscnt 0x0
\n
\
s_barrier_signal -1
\n
\
s_barrier_wait -1 \
"
::
);
#else
asm
volatile
(
"\
s_waitcnt lgkmcnt(0)
\n
\
s_barrier \
"
::
);
#endif
#else
__syncthreads
();
#endif
...
...
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