Skip to content

Commit 65e924b

Browse files
committed
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
1 parent f6918fe commit 65e924b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mesonbuild/modules/cuda.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,13 @@ def _nvcc_arch_flags(self, cuda_version: str, cuda_arch_list: AutoArch, detected
313313

314314
if version_compare(cuda_version, '>=12.8'):
315315
cuda_known_gpu_architectures.append('Blackwell')
316-
cuda_common_gpu_architectures.extend(['10.0', '10.1', '12.0'])
317-
cuda_all_gpu_architectures.extend(['10.0', '10.1', '12.0'])
316+
cuda_common_gpu_architectures.extend(['10.0', '12.0'])
317+
cuda_all_gpu_architectures.extend(['10.0', '12.0'])
318318

319319
if version_compare(cuda_version, '<13'):
320+
# Yes, 12.8 and 12.9 support 10.1, but 13.0 doesn't
321+
cuda_common_gpu_architectures.append('10.1')
322+
cuda_all_gpu_architectures.append('10.1')
320323
cuda_hi_limit_gpu_architecture = '12.1'
321324

322325
if version_compare(cuda_version, '>=12.9'):

0 commit comments

Comments
 (0)