Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
1068556b
Unverified
Commit
1068556b
authored
May 23, 2025
by
Simon Mo
Committed by
GitHub
May 23, 2025
Browse files
[Bugfix][Build/CI] Fixup CUDA compiler version check for CUDA_SUPPORTED_ARCHS (#18579)
parent
2cd1fa45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
CMakeLists.txt
CMakeLists.txt
+9
-7
No files found.
CMakeLists.txt
View file @
1068556b
...
...
@@ -29,13 +29,6 @@ set(ignoreMe "${VLLM_PYTHON_PATH}")
#
set
(
PYTHON_SUPPORTED_VERSIONS
"3.9"
"3.10"
"3.11"
"3.12"
)
# Supported NVIDIA architectures.
if
(
${
CMAKE_CUDA_COMPILER_VERSION
}
VERSION_GREATER_EQUAL
)
set
(
CUDA_SUPPORTED_ARCHS
"7.0;7.2;7.5;8.0;8.6;8.7;8.9;9.0;10.0;10.1;12.0"
)
else
()
set
(
CUDA_SUPPORTED_ARCHS
"7.0;7.2;7.5;8.0;8.6;8.7;8.9;9.0"
)
endif
()
# Supported AMD GPU architectures.
set
(
HIP_SUPPORTED_ARCHS
"gfx906;gfx908;gfx90a;gfx942;gfx950;gfx1030;gfx1100;gfx1101;gfx1200;gfx1201"
)
...
...
@@ -83,6 +76,15 @@ endif()
#
find_package
(
Torch REQUIRED
)
# Supported NVIDIA architectures.
# This check must happen after find_package(Torch) because that's when CMAKE_CUDA_COMPILER_VERSION gets defined
if
(
DEFINED CMAKE_CUDA_COMPILER_VERSION AND
CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 12.8
)
set
(
CUDA_SUPPORTED_ARCHS
"7.0;7.2;7.5;8.0;8.6;8.7;8.9;9.0;10.0;10.1;12.0"
)
else
()
set
(
CUDA_SUPPORTED_ARCHS
"7.0;7.2;7.5;8.0;8.6;8.7;8.9;9.0"
)
endif
()
#
# Forward the non-CUDA device extensions to external CMake scripts.
#
...
...
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