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
ae3b8ff8
Unverified
Commit
ae3b8ff8
authored
Aug 08, 2024
by
Illia Silin
Committed by
GitHub
Aug 08, 2024
Browse files
check if the coerce-illegal-types flag is supported (#1451)
parent
8a757284
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
CMakeLists.txt
CMakeLists.txt
+3
-1
No files found.
CMakeLists.txt
View file @
ae3b8ff8
...
@@ -189,7 +189,9 @@ if(NOT WIN32 AND ${hip_VERSION_FLAT} GREATER 600140090)
...
@@ -189,7 +189,9 @@ if(NOT WIN32 AND ${hip_VERSION_FLAT} GREATER 600140090)
message
(
"Adding the enable-post-misched=0 compiler flag"
)
message
(
"Adding the enable-post-misched=0 compiler flag"
)
add_compile_options
(
"SHELL: -mllvm -enable-post-misched=0"
)
add_compile_options
(
"SHELL: -mllvm -enable-post-misched=0"
)
endif
()
endif
()
if
(
NOT WIN32 AND
${
hip_VERSION_FLAT
}
GREATER 600241132 AND
${
hip_VERSION_FLAT
}
LESS 600300000
)
set
(
check-coerce
)
check_cxx_compiler_flag
(
" -mllvm -amdgpu-coerce-illegal-types=1"
check-coerce
)
if
(
NOT WIN32 AND check-coerce AND
${
hip_VERSION_FLAT
}
GREATER 600241132 AND
${
hip_VERSION_FLAT
}
LESS 600300000
)
message
(
"Adding the amdgpu-coerce-illegal-types=1"
)
message
(
"Adding the amdgpu-coerce-illegal-types=1"
)
add_compile_options
(
"SHELL: -mllvm -amdgpu-coerce-illegal-types=1"
)
add_compile_options
(
"SHELL: -mllvm -amdgpu-coerce-illegal-types=1"
)
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