[CI/Build] Add warning for unsupported global PTX architecture requests in... (#51901)

This commit is contained in:
Shane Widanagama
2026-08-15 07:01:52 -07:00
committed by GitHub
parent 97388c44f9
commit d4801990a4
4 changed files with 63 additions and 5 deletions
+2 -1
View File
@@ -222,7 +222,8 @@ if(VLLM_GPU_LANG STREQUAL "CUDA")
# `+PTX` in TORCH_CUDA_ARCH_LIST is not preserved here. If a kernel really
# needs PTX, add `+PTX` to that kernel's component-specific arch list below.
#
clear_cuda_arches(CUDA_ARCH_FLAGS)
clear_cuda_gencode_flags(CUDA_ARCH_FLAGS)
warn_if_ptx_arch_requested("${CUDA_ARCH_FLAGS}")
extract_unique_cuda_archs_ascending(CUDA_ARCHS "${CUDA_ARCH_FLAGS}")
message(STATUS "CUDA target architectures: ${CUDA_ARCHS}")
# Filter the target architectures by the supported supported archs