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
461ec98d
Unverified
Commit
461ec98d
authored
Aug 30, 2024
by
Po Yen Chen
Committed by
GitHub
Aug 30, 2024
Browse files
Enable scratch memory workaround on ROCm 6.2 (#1486)
Co-authored-by:
carlushuang
<
carlus.huang@amd.com
>
parent
8107ee62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
include/ck_tile/core/config.hpp
include/ck_tile/core/config.hpp
+8
-0
include/ck_tile/core/tensor/tile_window.hpp
include/ck_tile/core/tensor/tile_window.hpp
+2
-1
No files found.
include/ck_tile/core/config.hpp
View file @
461ec98d
...
@@ -156,6 +156,14 @@
...
@@ -156,6 +156,14 @@
#endif
#endif
#endif
#endif
#ifndef CK_TILE_WORKAROUND_ROCM_6_2_SCRATCH_MEMORY_ISSUE
#if HIP_VERSION_MAJOR == 6 && HIP_VERSION_MINOR == 2 && HIP_VERSION_PATCH >= 41133
#define CK_TILE_WORKAROUND_ROCM_6_2_SCRATCH_MEMORY_ISSUE 1
#else
#define CK_TILE_WORKAROUND_ROCM_6_2_SCRATCH_MEMORY_ISSUE 0
#endif
#endif
#ifndef CK_TILE_DEBUG_LOG
#ifndef CK_TILE_DEBUG_LOG
#define CK_TILE_DEBUG_LOG 0
#define CK_TILE_DEBUG_LOG 0
#endif
#endif
...
...
include/ck_tile/core/tensor/tile_window.hpp
View file @
461ec98d
...
@@ -399,7 +399,8 @@ struct tile_window_with_static_distribution
...
@@ -399,7 +399,8 @@ struct tile_window_with_static_distribution
bottom_tensor_thread_coord
,
bottom_tensor_thread_coord
,
bool_constant
<
oob_conditional_check
>
{},
bool_constant
<
oob_conditional_check
>
{},
pre_nop_
);
pre_nop_
);
#if CK_TILE_WORKAROUND_ROCM_6_1_SCRATCH_MEMORY_ISSUE
#if CK_TILE_WORKAROUND_ROCM_6_1_SCRATCH_MEMORY_ISSUE || \
CK_TILE_WORKAROUND_ROCM_6_2_SCRATCH_MEMORY_ISSUE
asm
volatile
(
asm
volatile
(
""
);
// this is starting from rocm-6.2, but same sympton, reuse this flag
""
);
// this is starting from rocm-6.2, but same sympton, reuse this flag
#endif
#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