Commit 123fdcc
committed
Fix CUDA 13.4 arch list: nvcc fatal 'Unsupported gpu architecture compute_50'
get_cuda_arch_list() matched "13.0" and "13.2" exactly, so 13.4 fell through to
the legacy fallback list "5.0;6.0;7.0;7.5;8.0;8.6;9.0". CUDA 13 removed sm_50
and sm_60, so every CUDA translation unit failed:
/usr/local/cuda-13.4/bin/nvcc ...
nvcc fatal : Unsupported gpu architecture 'compute_50'
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1
RuntimeError: Error compiling objects for extension
seen on pytorch/vision build-wheel-py3_10-cuda-aarch6413_4-aarch64.
Match the whole 13.x series with startswith("13.") rather than adding 13.4 to
the exact-match chain, so the next CUDA minor does not silently fall through to
a list containing architectures the toolkit no longer supports.
Add direct coverage for the arch list on 13.0/13.2/13.4 x linux/linux-aarch64:
the existing tests compare get_cuda_variables() against get_cuda_arch_list()
output, so they cannot catch a wrong list.1 parent cdc9e43 commit 123fdcc
2 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
0 commit comments