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
79cbcab8
Unverified
Commit
79cbcab8
authored
Sep 15, 2025
by
FengjinChen
Committed by
GitHub
Sep 14, 2025
Browse files
Force use C++17 globally to avoid compilation error (#24823)
Signed-off-by:
chenfengjin
<
1871653365@qq.com
>
parent
ff680359
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
CMakeLists.txt
CMakeLists.txt
+4
-0
cmake/utils.cmake
cmake/utils.cmake
+0
-1
No files found.
CMakeLists.txt
View file @
79cbcab8
...
...
@@ -13,6 +13,10 @@ cmake_minimum_required(VERSION 3.26)
# cmake --install . --component _C
project
(
vllm_extensions LANGUAGES CXX
)
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
# CUDA by default, can be overridden by using -DVLLM_TARGET_DEVICE=... (used by setup.py)
set
(
VLLM_TARGET_DEVICE
"cuda"
CACHE STRING
"Target device backend for vLLM"
)
message
(
STATUS
"Build type:
${
CMAKE_BUILD_TYPE
}
"
)
...
...
cmake/utils.cmake
View file @
79cbcab8
...
...
@@ -480,7 +480,6 @@ function (define_gpu_extension_target GPU_MOD_NAME)
${
GPU_LANGUAGE
}
_ARCHITECTURES
"
${
GPU_ARCHITECTURES
}
"
)
endif
()
set_property
(
TARGET
${
GPU_MOD_NAME
}
PROPERTY CXX_STANDARD 17
)
target_compile_options
(
${
GPU_MOD_NAME
}
PRIVATE
$<$<COMPILE_LANGUAGE:
${
GPU_LANGUAGE
}
>:
${
GPU_COMPILE_FLAGS
}
>
)
...
...
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