From adce8c78c8cc861c04ceffcc7a380285755bf15b Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Sun, 26 Jul 2026 16:44:49 +0000 Subject: [PATCH] do not prepend "cc" to gpu arch if it already starts with "cc" --- cmake/Modules/CompilerHelpers.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Modules/CompilerHelpers.cmake b/cmake/Modules/CompilerHelpers.cmake index 876778007..755fcdb3e 100644 --- a/cmake/Modules/CompilerHelpers.cmake +++ b/cmake/Modules/CompilerHelpers.cmake @@ -47,6 +47,7 @@ function(cuda_archs_to_gpu_list archs out_var) set(_gpus) foreach(_arch IN LISTS archs) string(REGEX REPLACE "-(real|virtual)$" "" _arch "${_arch}") + string(REGEX REPLACE "^cc" "" _arch "${_arch}") string(PREPEND _arch "cc") list(APPEND _gpus "${_arch}") endforeach()