Repository navigation
[release/2.13] Add CUDA 12.9 to TORCH_CUDA_ARCH_LIST tables - #188443
Merged
atalman merged 1 commit intoJun 29, 2026
Merged
Conversation
CUDA 12.9 is in the release/2.13 build matrix (CUDA_ARCHES), but the arch-list
tables introduced in the 2.13 refactor omit it, so manywheel-cuda-cu129-build
fails at .ci/manywheel/build_env_setup.py with 'unknown cuda version 12.9'.
In 2.12 the arch list was a bash case in build_cuda.sh that handled 12.9 as
base + sm_12.0 (Blackwell), i.e. the 13.x set, not the legacy 12.6 set. Restore
that by adding a 12.9 entry to both TORCH_CUDA_ARCH_LIST_TABLE (build) and
PYTORCH_RELEASES_CODE_CC (runtime), kept in sync per
validate_runtime_release_table_consistency():
x86_64: {75, 80, 86, 90, 100, 120} (== 13.0/13.2)
aarch64: {80, 90, 100, 120} (13.x aarch64 minus sm_110, which 12.9 never added)
validate_runtime_release_table_consistency() passes.
atalman
requested review from
a team,
Aidyn-A,
eqy and
syed-ahmed
as code owners
June 29, 2026 17:37
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/188443
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 65 PendingAs of commit 40c64f2 with merge base 636bc91 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
huydhn
approved these changes
Jun 29, 2026
jathu
approved these changes
Jun 29, 2026
This was referenced Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the
manywheel-cuda-cu129-buildfailure onrelease/2.13:(example run)
Root cause
CUDA 12.9 is a build target on release/2.13 (
CUDA_ARCHES = ["12.6", "12.9", "13.0", "13.2"], with cuDNN/toolkit/extra-requirements all defined, and the docker image pulls fine). But the 2.13 refactor that moved theTORCH_CUDA_ARCH_LISTlogic from a bashcasein.ci/manywheel/build_cuda.shinto Python tables dropped the 12.9 entry..ci/manywheel/build_env_setup.py::torch_cuda_arch_list("12.9", ...)then hitsraise SystemExit("unknown cuda version 12.9")at env setup, before any compilation.In
release/2.12, 12.9 (and 12.9-aarch64) was a valid build arch and built fine via the bash case:i.e. the Blackwell set (same as 13.x), not the legacy 12.6 set.
Fix
Add a
12.9entry to both arch tables (kept in sync byvalidate_runtime_release_table_consistency()), mirroring 2.12's behavior:.ci/manywheel/build_env_setup.py->TORCH_CUDA_ARCH_LIST_TABLEtorch/cuda/__init__.py->PYTORCH_RELEASES_CODE_CC(2.13's table is package-type-agnostic, so the old libtorch "remove sm_86" special-case from 2.12 does not apply here.)
Test plan
python .github/scripts/generate_binary_build_matrix.pyruns clean ->validate_runtime_release_table_consistency()passes (runtime/build tables now agree on 12.9).manywheel-cuda-cu129-build: env setup resolvesTORCH_CUDA_ARCH_LISTfor 12.9 instead of erroring.