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
2e1165c1
Unverified
Commit
2e1165c1
authored
Oct 09, 2024
by
Illia Silin
Committed by
GitHub
Oct 09, 2024
Browse files
fix the target selection logic (#1561)
parent
cfac9497
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
CMakeLists.txt
CMakeLists.txt
+6
-2
No files found.
CMakeLists.txt
View file @
2e1165c1
...
...
@@ -132,7 +132,11 @@ if(GPU_ARCHS)
unset
(
GPU_TARGETS CACHE
)
unset
(
AMDGPU_TARGETS CACHE
)
endif
()
if
(
GPU_TARGETS
)
set
(
USER_GPU_TARGETS 1
)
else
()
set
(
USER_GPU_TARGETS 0
)
endif
()
find_package
(
hip
)
# No assumption that HIP kernels are launched with uniform block size for backward compatibility
# SWDEV-413293 and https://reviews.llvm.org/D155213
...
...
@@ -162,7 +166,7 @@ endif()
if
(
GPU_ARCHS
)
set
(
CK_GPU_TARGETS
${
GPU_ARCHS
}
)
else
()
if
(
GPU_TARGETS
)
if
(
USER_
GPU_TARGETS
)
set
(
CK_GPU_TARGETS
${
GPU_TARGETS
}
)
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