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
3e6dd400
Unverified
Commit
3e6dd400
authored
Aug 15, 2025
by
Jinzhen Lin
Committed by
GitHub
Aug 15, 2025
Browse files
[Bugfix] fix cuda 12.6 and 11.8 build (#22952)
Signed-off-by:
Jinzhen Lin
<
jinzhen.ljz@antgroup.com
>
parent
aa300c43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
CMakeLists.txt
CMakeLists.txt
+12
-6
No files found.
CMakeLists.txt
View file @
3e6dd400
...
...
@@ -351,8 +351,10 @@ if(VLLM_GPU_LANG STREQUAL "CUDA")
set_gencode_flags_for_srcs
(
SRCS
"
${
MARLIN_TEMPLATE_KERNEL_SRC
}
"
CUDA_ARCHS
"
${
MARLIN_ARCHS
}
"
)
if
(
${
CMAKE_CUDA_COMPILER_VERSION
}
VERSION_GREATER_EQUAL 12.8
)
set_source_files_properties
(
${
MARLIN_TEMPLATE_KERNEL_SRC
}
PROPERTIES COMPILE_FLAGS
"-static-global-template-stub=false"
)
endif
()
list
(
APPEND VLLM_EXT_SRC
${
MARLIN_TEMPLATE_KERNEL_SRC
}
)
...
...
@@ -366,8 +368,10 @@ if(VLLM_GPU_LANG STREQUAL "CUDA")
set_gencode_flags_for_srcs
(
SRCS
"
${
MARLIN_SRCS
}
"
CUDA_ARCHS
"
${
MARLIN_ARCHS
}
"
)
if
(
${
CMAKE_CUDA_COMPILER_VERSION
}
VERSION_GREATER_EQUAL 12.8
)
set_source_files_properties
(
"csrc/quantization/gptq_marlin/gptq_marlin.cu"
PROPERTIES COMPILE_FLAGS
"-static-global-template-stub=false"
)
endif
()
list
(
APPEND VLLM_EXT_SRC
"
${
MARLIN_SRCS
}
"
)
message
(
STATUS
"Building Marlin kernels for archs:
${
MARLIN_ARCHS
}
"
)
...
...
@@ -859,8 +863,10 @@ if(VLLM_GPU_LANG STREQUAL "CUDA")
set_gencode_flags_for_srcs
(
SRCS
"
${
MOE_WNAA16_MARLIN_SRC
}
"
CUDA_ARCHS
"
${
MARLIN_MOE_ARCHS
}
"
)
if
(
${
CMAKE_CUDA_COMPILER_VERSION
}
VERSION_GREATER_EQUAL 12.8
)
set_source_files_properties
(
${
MOE_WNAA16_MARLIN_SRC
}
PROPERTIES COMPILE_FLAGS
"-static-global-template-stub=false"
)
endif
()
list
(
APPEND VLLM_MOE_EXT_SRC
${
MOE_WNAA16_MARLIN_SRC
}
)
...
...
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