Change cmakelists

Signed-off-by: mgoin <mgoin64@gmail.com>
This commit is contained in:
mgoin 2025-07-09 12:55:41 -04:00
parent 0204263598
commit 721dcb2ebc

View File

@ -171,6 +171,13 @@ if(NVCC_THREADS AND VLLM_GPU_LANG STREQUAL "CUDA")
list(APPEND VLLM_GPU_FLAGS "--threads=${NVCC_THREADS}")
endif()
#
# Set nvcc fatbin compression.
#
if(${CMAKE_CUDA_COMPILER_VERSION} VERSION_GREATER 12.8 AND VLLM_GPU_LANG STREQUAL "CUDA")
list(APPEND VLLM_GPU_FLAGS "-Xfatbin -compress-all -compress-mode=size")
endif()
#
# Use FetchContent for C++ dependencies that are compiled as part of vLLM's build process.