From 65e924bba6d02335404c409d327d93bbbc82176b Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 5 Dec 2025 10:09:00 -0800 Subject: modules/cuda: Cuda 13.0 doesn't support the 10.1 profile Even thought 12.8 and 12.9 do. So don't add then when we have 13 --- mesonbuild/modules/cuda.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mesonbuild/modules/cuda.py b/mesonbuild/modules/cuda.py index 5d9ac10a0..df1af0720 100644 --- a/mesonbuild/modules/cuda.py +++ b/mesonbuild/modules/cuda.py @@ -313,10 +313,13 @@ class CudaModule(NewExtensionModule): if version_compare(cuda_version, '>=12.8'): cuda_known_gpu_architectures.append('Blackwell') - cuda_common_gpu_architectures.extend(['10.0', '10.1', '12.0']) - cuda_all_gpu_architectures.extend(['10.0', '10.1', '12.0']) + cuda_common_gpu_architectures.extend(['10.0', '12.0']) + cuda_all_gpu_architectures.extend(['10.0', '12.0']) if version_compare(cuda_version, '<13'): + # Yes, 12.8 and 12.9 support 10.1, but 13.0 doesn't + cuda_common_gpu_architectures.append('10.1') + cuda_all_gpu_architectures.append('10.1') cuda_hi_limit_gpu_architecture = '12.1' if version_compare(cuda_version, '>=12.9'): -- cgit v1.2.3