Skip to content

[CD] Add CUDA 13.2 x86 and sbsa and libtorch binaries - #177316

Closed
tinglvv wants to merge 10 commits into
pytorch:mainfrom
tinglvv:cu132-binary
Closed

tinglvv wants to merge 10 commits into
pytorch:mainfrom
tinglvv:cu132-binary

Conversation

@tinglvv

@tinglvv tinglvv commented Mar 12, 2026 •

Copy link
Copy Markdown
Collaborator

#177067

CUDA 13.2.0
CUDNN 9.20.0.48
CusparseLt 0.8.1
Add x86 and sbsa binaries (as they are now unified into same workflow)
Add libtorch docker and libtorch binaries

@tinglvv
tinglvv requested a review from a team as a code owner March 12, 2026 21:03
@pytorch-bot

pytorch-bot Bot commented Mar 12, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/177316

Note: Links to docs will display an error until the docs builds have been completed.

❌ 6 New Failures, 1 Pending

As of commit 4abfbbf with merge base 0b2f7f4 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the release notes: releng release notes category label Mar 12, 2026
@tinglvv tinglvv mentioned this pull request Mar 12, 2026
7 tasks done
@tinglvv
tinglvv requested a review from jeffdaily as a code owner March 12, 2026 22:36
@tinglvv tinglvv added the ciflow/binaries Trigger all binary build and upload jobs on the PR label Mar 13, 2026
@Skylion007

Copy link
Copy Markdown
Collaborator

FYI @tinglvv #177456

@atalman

atalman commented Mar 15, 2026

Copy link
Copy Markdown
Collaborator

@claude why are we getting "echo 'Unable to derive operating system base...' exit 1" during 13.2 manylinux docker build job. Can you fix ?

@claude

claude Bot commented Mar 15, 2026 •

Copy link
Copy Markdown

Claude finished @atalman's task in 7m 28s —— View job


Root Cause Analysis

The CUDA 13.2 binary build jobs (manywheel-py3_*-cuda13_2-build) fail at the "Calculate docker image" step. Here's the sequence:

  1. The binary build workflow (_binary-build-linux.yml) uses the calculate-docker-image action with docker-build-dir: .ci/docker
  2. The action tries to find the pre-built docker image manylinux2_28-builder:cuda13.2-<sha> in ECR
  3. Since the image doesn't exist yet (new for CUDA 13.2), it polls ECR every 5 minutes for up to 2 hours
  4. After timing out, it falls through and tries to rebuild the image locally by running .ci/docker/build.sh
  5. .ci/docker/build.sh is invoked as: ./build.sh manylinux2_28-builder:cuda13.2
  6. This script only handles pytorch-linux-* CI test image names (checking for -jammy, -noble, ubuntu patterns), not manylinux* binary builder names
  7. None of the patterns match → UBUNTU_VERSION is empty → "Unable to derive operating system base..." → exit 1

The correct build script for manylinux* images is .ci/docker/manywheel/build.sh (which already handles cuda13* at line 64).

Proposed Fix

Add delegation logic at the top of .ci/docker/build.sh to route binary builder image names to their correct build scripts:

# Delegate to the appropriate build script for binary builder images
if [[ "$image" == manylinux* ]]; then
  exec "$(dirname "$0")/manywheel/build.sh" "$image" "$@"
elif [[ "$image" == libtorch-* ]]; then
  exec "$(dirname "$0")/libtorch/build.sh" "$image" "$@"
elif [[ "$image" == almalinux-* ]]; then
  exec "$(dirname "$0")/almalinux/build.sh" "$image" "$@"
fi

This should be inserted in .ci/docker/build.sh after the XLA check (line 51) and before the Ubuntu version detection (line 53).

I was unable to push the commit because the PR branch contains .github/workflows/ changes from previous commits, and GitHub requires workflows scope permissions for branches that modify workflow files. Please apply this fix manually or grant the appropriate permissions.

@atalman

atalman commented Mar 15, 2026 •

Copy link
Copy Markdown
Collaborator

@tinglvv Started new run for Docker image : https://github.com/pytorch/pytorch/actions/runs/23113240672/job/67134267135?pr=177316

Looks like this is infra related. The previous Docker build have failed

@soulitzer soulitzer added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Mar 16, 2026
atalman added a commit to pytorch/test-infra that referenced this pull request Mar 16, 2026
This is required for pytorch/pytorch#177316

1. Adds cu132 index
2. Adds ability to clone all subfolders from cu130->cu132

@atalman atalman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tinglvv

tinglvv commented Mar 17, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for the approval, for the Windows failure, are they unrelated? I did change the cuda_install.bat for cudnn windows installation. However the error message looks irrelevant https://github.com/pytorch/pytorch/actions/runs/23113241779/job/67318125718

@tinglvv

tinglvv commented Mar 17, 2026

Copy link
Copy Markdown
Collaborator Author

@claude why did the windows build fail? Are they relevant?

@claude

claude Bot commented Mar 17, 2026 •

Copy link
Copy Markdown

Claude finished @tinglvv's task in 1m 45s —— View job


Windows ARM64 Build Failure Analysis

  • Examine the Windows ARM64 build failure logs
  • Review the cuda_install.bat changes in this PR
  • Determine if failures are related to the PR changes

Findings

The Windows ARM64 failures are NOT related to your PR changes.

All three failed jobs (wheel-py3_11-cpu-test, wheel-py3_12-cpu-test, wheel-py3_13-cpu-test) fail with the same error during the test step when attempting import torch:

OSError: [WinError 126] The specified module could not be found.
Error loading "C:\a\pytorch\pytorch\.venv\Lib\site-packages\torch\lib\aoti_custom_ops.dll"
or one of its dependencies.

Key reasons this is unrelated to your PR:

  1. CPU, not CUDA: These are Windows ARM64 CPU wheel tests. Your cuda_install.bat changes only add CUDA 13.2 entries and are never executed in CPU builds (the script exits at line 4: if "%CUDA_VERSION%" == "cpu" exit /b 0).

  2. DLL loading issue: The error is about aoti_custom_ops.dll failing to load — this is a build/packaging issue with the Windows ARM64 binary, not a CUDA installation problem.

  3. Build succeeded: The corresponding build jobs (wheel-py3_11-cpu-build, wheel-py3_12-cpu-build, wheel-py3_13-cpu-build) all passed. The failure happens only when the built wheel is installed and tested, indicating a missing runtime dependency in the packaged wheel.

This appears to be a pre-existing Windows ARM64 infrastructure issue with the aoti_custom_ops.dll not bundling all its runtime dependencies correctly. @Skylion007 may have been pointing to a related fix with PR #177456.


@tinglvv

tinglvv commented Mar 17, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge -i

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 17, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged while ignoring the following 3 checks: windows-arm64-binary-wheel / wheel-py3_11-cpu-test, windows-arm64-binary-wheel / wheel-py3_13-cpu-test, windows-arm64-binary-wheel / wheel-py3_12-cpu-test

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorch-auto-revert

Copy link
Copy Markdown

@pytorchbot revert -m "Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable" -c autorevert

This PR is attributed to have caused regression in:

Please investigate and fix the issues.
@claude Can you please read this revert comment, follow the links and read the errors, to then give a brief diagnostics on the cause of the error? If you judge the error to be legitimate reason for a revert, please provide brief guidance on how the author could fix it.

@claude

claude Bot commented Mar 17, 2026 •

Copy link
Copy Markdown

Claude finished @pytorch-auto-revert[bot]'s task in 1m 21s —— View job


Revert Diagnostics

  • Read the CI failure logs from the workflow-checks job
  • Diagnose the root cause
  • Assess if revert is legitimate and provide fix guidance

Root Cause

The workflow-checks / linux-job fails when running .github/scripts/generate_ci_workflows.py, which imports generate_binary_build_matrix.py. At module load time (line 550), it validates NCCL version consistency for every CUDA arch:

RuntimeError: 13.2 NCCL release tag version v2.29.7-1 does not correspond to wheel version 2.29.3

The validation in validate_nccl_dep_consistency() (line 185-192) compares:

  • NCCL pin file (.ci/docker/ci_commit_pins/nccl.txt): v2.29.7-1
  • CUDA 13.2 wheel requirement (PYTORCH_EXTRA_INSTALL_REQUIREMENTS["13.2"] at line 98): nvidia-nccl-cu13==2.29.3

All other CUDA versions (12.6, 12.8, 12.9, 13.0) specify nvidia-nccl-cu1X==2.29.7, which matches the pin v2.29.7-1. But the CUDA 13.2 entry specifies 2.29.3, which does not match.

Verdict

The revert is legitimate. The NCCL wheel version for CUDA 13.2 is inconsistent with the pinned NCCL source version, causing the workflow generation script to fail at import time. This blocks all CI workflow-checks.

How to Fix

In .github/scripts/generate_binary_build_matrix.py, line 98, update the NCCL wheel version for CUDA 13.2 from 2.29.3 to 2.29.7 to match the other CUDA versions and the NCCL pin:

     "13.2": (
         ...
-        "nvidia-nccl-cu13==2.29.3; platform_system == 'Linux' | "
+        "nvidia-nccl-cu13==2.29.7; platform_system == 'Linux' | "
         ...
     ),

Important: Before making this change, @tinglvv should verify that the nvidia-nccl-cu13==2.29.7 wheel actually exists on PyPI for CUDA 13.2. If 2.29.7 isn't available for cu13 and only 2.29.3 is, then the fix would instead be to create a separate NCCL pin file for CUDA 13.x (e.g., nccl-cu13.txt with v2.29.3-1) and update read_nccl_pin() to return the correct pin based on CUDA version — there is already a commented-out pattern for this in tools/optional_submodules.py:33-38.

After fixing, regenerate the CI workflows by running:

.github/scripts/generate_ci_workflows.py

and commit the updated generated workflow files along with the fix.

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@atalman atalman added ci: disable-autorevert Add this label to issues in order to temporarily disable autorevert autorevert: disable Disable autorevert for a specific PR labels Mar 19, 2026
@atalman

atalman commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

@pytorchmergebot merge -f "all required builds look good"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

ryanzhang22 pushed a commit to ryanzhang22/pytorch that referenced this pull request Mar 19, 2026
pytorch#177067

CUDA 13.2.0
Add x86 and sbsa binaries (as they are now unified into same workflow)
Add libtorch docker (and testing add binaries directly too)

Pull Request resolved: pytorch#177316
Approved by: https://github.com/atalman, https://github.com/kwen2501
@tinglvv tinglvv changed the title [CD] Add CUDA 13.2 x86 and sbsa binaries [CD] Add CUDA 13.2 x86 and sbsa and libtorch binaries Mar 19, 2026
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
pytorch#177067

CUDA 13.2.0
Add x86 and sbsa binaries (as they are now unified into same workflow)
Add libtorch docker (and testing add binaries directly too)

Pull Request resolved: pytorch#177316
Approved by: https://github.com/atalman

Co-authored-by: Andrey Talman <[email protected]>
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
This reverts commit 557a55a.

Reverted pytorch#177316 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#177316 (comment)))
AaronWang04 pushed a commit to AaronWang04/pytorch that referenced this pull request Mar 31, 2026
pytorch#177067

CUDA 13.2.0
Add x86 and sbsa binaries (as they are now unified into same workflow)
Add libtorch docker (and testing add binaries directly too)

Pull Request resolved: pytorch#177316
Approved by: https://github.com/atalman

Co-authored-by: Andrey Talman <[email protected]>
AaronWang04 pushed a commit to AaronWang04/pytorch that referenced this pull request Mar 31, 2026
This reverts commit 557a55a.

Reverted pytorch#177316 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#177316 (comment)))
AaronWang04 pushed a commit to AaronWang04/pytorch that referenced this pull request Mar 31, 2026
pytorch#177067

CUDA 13.2.0
Add x86 and sbsa binaries (as they are now unified into same workflow)
Add libtorch docker (and testing add binaries directly too)

Pull Request resolved: pytorch#177316
Approved by: https://github.com/atalman, https://github.com/kwen2501
pytorchmergebot pushed a commit that referenced this pull request Apr 27, 2026
  ## Summary

  Removes the hardcoded cu132 → cu130 wheel-install fallback in Dockerfile. The fallback was added in
   #177316 as a temporary workaround when CUDA 13.2 nightlies weren't yet published; cu132 wheels
  have been on download.pytorch.org/whl/nightly/cu132/ since 2026-04-20, so the override is now stale
   and actively wrong.

  With the override in place, the cuda13.2-cudnn9-{runtime,devel} images installed +cu130 wheels,
  causing the docker-release validation smoke test to fail:

  RuntimeError: Wrong CUDA version. Loaded: 13.0 Expected: 13.2
  (from smoke_test.py smoke_test_cuda — torch.version.cuda != gpu_arch_ver)

  Failing run: https://github.com/pytorch/pytorch/actions/runs/24879565337 (jobs validate /
  cuda13.2-cudnn9-runtime and validate / cuda13.2-cudnn9-devel).

  ## Test plan

  - Build Official Docker Images workflow runs green on nightly, including validate /
  cuda13.2-cudnn9-runtime and validate / cuda13.2-cudnn9-devel.
  - In the built cuda13.2-cudnn9-runtime image, python -c 'import torch; print(torch.version.cuda)'
  reports 13.2.
Pull Request resolved: #181513
Approved by: https://github.com/Skylion007, https://github.com/wdvr, https://github.com/malfet
atalman added a commit that referenced this pull request Apr 27, 2026
[CD] Remove cu132->cu130 wheel install fallback in Dockerfile  (#181513)

  ## Summary

  Removes the hardcoded cu132 → cu130 wheel-install fallback in Dockerfile. The fallback was added in
   #177316 as a temporary workaround when CUDA 13.2 nightlies weren't yet published; cu132 wheels
  have been on download.pytorch.org/whl/nightly/cu132/ since 2026-04-20, so the override is now stale
   and actively wrong.

  With the override in place, the cuda13.2-cudnn9-{runtime,devel} images installed +cu130 wheels,
  causing the docker-release validation smoke test to fail:

  RuntimeError: Wrong CUDA version. Loaded: 13.0 Expected: 13.2
  (from smoke_test.py smoke_test_cuda — torch.version.cuda != gpu_arch_ver)

  Failing run: https://github.com/pytorch/pytorch/actions/runs/24879565337 (jobs validate /
  cuda13.2-cudnn9-runtime and validate / cuda13.2-cudnn9-devel).

  ## Test plan

  - Build Official Docker Images workflow runs green on nightly, including validate /
  cuda13.2-cudnn9-runtime and validate / cuda13.2-cudnn9-devel.
  - In the built cuda13.2-cudnn9-runtime image, python -c 'import torch; print(torch.version.cuda)'
  reports 13.2.
Pull Request resolved: #181513
Approved by: https://github.com/Skylion007, https://github.com/wdvr, https://github.com/malfet

(cherry picked from commit 23357da)

Co-authored-by: atalman <[email protected]>
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
…h#181513)

  ## Summary

  Removes the hardcoded cu132 → cu130 wheel-install fallback in Dockerfile. The fallback was added in
   pytorch#177316 as a temporary workaround when CUDA 13.2 nightlies weren't yet published; cu132 wheels
  have been on download.pytorch.org/whl/nightly/cu132/ since 2026-04-20, so the override is now stale
   and actively wrong.

  With the override in place, the cuda13.2-cudnn9-{runtime,devel} images installed +cu130 wheels,
  causing the docker-release validation smoke test to fail:

  RuntimeError: Wrong CUDA version. Loaded: 13.0 Expected: 13.2
  (from smoke_test.py smoke_test_cuda — torch.version.cuda != gpu_arch_ver)

  Failing run: https://github.com/pytorch/pytorch/actions/runs/24879565337 (jobs validate /
  cuda13.2-cudnn9-runtime and validate / cuda13.2-cudnn9-devel).

  ## Test plan

  - Build Official Docker Images workflow runs green on nightly, including validate /
  cuda13.2-cudnn9-runtime and validate / cuda13.2-cudnn9-devel.
  - In the built cuda13.2-cudnn9-runtime image, python -c 'import torch; print(torch.version.cuda)'
  reports 13.2.
Pull Request resolved: pytorch#181513
Approved by: https://github.com/Skylion007, https://github.com/wdvr, https://github.com/malfet
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
pytorch#177067

CUDA 13.2.0
Add x86 and sbsa binaries (as they are now unified into same workflow)
Add libtorch docker (and testing add binaries directly too)

Pull Request resolved: pytorch#177316
Approved by: https://github.com/atalman

Co-authored-by: Andrey Talman <[email protected]>
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
This reverts commit 557a55a.

Reverted pytorch#177316 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#177316 (comment)))
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
pytorch#177067

CUDA 13.2.0
Add x86 and sbsa binaries (as they are now unified into same workflow)
Add libtorch docker (and testing add binaries directly too)

Pull Request resolved: pytorch#177316
Approved by: https://github.com/atalman, https://github.com/kwen2501
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
…h#181513)

  ## Summary

  Removes the hardcoded cu132 → cu130 wheel-install fallback in Dockerfile. The fallback was added in
   pytorch#177316 as a temporary workaround when CUDA 13.2 nightlies weren't yet published; cu132 wheels
  have been on download.pytorch.org/whl/nightly/cu132/ since 2026-04-20, so the override is now stale
   and actively wrong.

  With the override in place, the cuda13.2-cudnn9-{runtime,devel} images installed +cu130 wheels,
  causing the docker-release validation smoke test to fail:

  RuntimeError: Wrong CUDA version. Loaded: 13.0 Expected: 13.2
  (from smoke_test.py smoke_test_cuda — torch.version.cuda != gpu_arch_ver)

  Failing run: https://github.com/pytorch/pytorch/actions/runs/24879565337 (jobs validate /
  cuda13.2-cudnn9-runtime and validate / cuda13.2-cudnn9-devel).

  ## Test plan

  - Build Official Docker Images workflow runs green on nightly, including validate /
  cuda13.2-cudnn9-runtime and validate / cuda13.2-cudnn9-devel.
  - In the built cuda13.2-cudnn9-runtime image, python -c 'import torch; print(torch.version.cuda)'
  reports 13.2.
Pull Request resolved: pytorch#181513
Approved by: https://github.com/Skylion007, https://github.com/wdvr, https://github.com/malfet
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…h#181513)

  ## Summary

  Removes the hardcoded cu132 → cu130 wheel-install fallback in Dockerfile. The fallback was added in
   pytorch#177316 as a temporary workaround when CUDA 13.2 nightlies weren't yet published; cu132 wheels
  have been on download.pytorch.org/whl/nightly/cu132/ since 2026-04-20, so the override is now stale
   and actively wrong.

  With the override in place, the cuda13.2-cudnn9-{runtime,devel} images installed +cu130 wheels,
  causing the docker-release validation smoke test to fail:

  RuntimeError: Wrong CUDA version. Loaded: 13.0 Expected: 13.2
  (from smoke_test.py smoke_test_cuda — torch.version.cuda != gpu_arch_ver)

  Failing run: https://github.com/pytorch/pytorch/actions/runs/24879565337 (jobs validate /
  cuda13.2-cudnn9-runtime and validate / cuda13.2-cudnn9-devel).

  ## Test plan

  - Build Official Docker Images workflow runs green on nightly, including validate /
  cuda13.2-cudnn9-runtime and validate / cuda13.2-cudnn9-devel.
  - In the built cuda13.2-cudnn9-runtime image, python -c 'import torch; print(torch.version.cuda)'
  reports 13.2.
Pull Request resolved: pytorch#181513
Approved by: https://github.com/Skylion007, https://github.com/wdvr, https://github.com/malfet
pytorchmergebot pushed a commit that referenced this pull request Aug 7, 2026
Adds CUDA 13.4 to the nightly binary matrix as "step 2" on top of the 13.4
Docker/magma tooling that already landed (install_cuda.sh install_134, the
almalinux cuda13.4 stage, magma-cuda134). This mirrors #177316 for 13.2:
13.4 joins CUDA_ARCHES and CUDA_AARCH64_ARCHES, gets a manylinux2_28 and
manylinuxaarch64 builder image, and gets its own runtime dependency pin set.

Review order: generate_binary_build_matrix.py holds the actual decisions, the
two arch-list tables (.ci/manywheel/build_env_setup.py and
torch/cuda/__init__.py) must stay in sync and are validated by the matrix
script itself, build-manywheel-images.yml adds the two builder images, and the
generated-* workflows are pure regeneration output.

The dependency pins come from the r13.4 wheel manifest: the toolkit metapackage
is cuda-toolkit==13.4.0 (components ship at 13.4.46, cublas 13.7.0.10, etc.,
all pulled in by the metapackage), so only the metapackage version is pinned
here, matching the 13.0/13.2 entries. cuDNN 9.24.0.43, cuSPARSELt 0.8.1,
NCCL 2.30.7 and NVSHMEM 3.4.5 are unchanged from 13.2 and match what
install_134 installs into the builder image.

Linux x86_64 and sbsa only. Windows is skipped via the new
CUDA_ARCHES_NO_WINDOWS list because cuda_install.bat pulls a
cuda_<ver>_windows.exe from the ossci-windows S3 bucket and no 13.4 installer
has been published there yet -- 13.4 is still preview-only, which is also why
install_134 uses the network repo rather than a runfile. The alternative was to
hold the whole change until 13.4 GA; splitting Windows out lets the Linux
nightlies start baking now, and re-enabling Windows later is a one-line removal
from that list plus a :cuda134 label in cuda_install.bat.

Test Plan:

Regenerated the workflows and ran the matrix script, which also runs its
NCCL-pin, cuDNN-version and arch-list consistency validators at import:

```
python3 .github/scripts/generate_ci_workflows.py
python3 .github/scripts/generate_binary_build_matrix.py
```

Confirmed the generated Windows workflow is untouched (13.4 excluded) and that
the new cu134 jobs carry the expected image tag and dependency string:

```
git diff --stat .github/workflows/
git diff .github/workflows/generated-linux-binary-manywheel-nightly.yml | grep cu134
```

lintrunner was not run: no Python environment with it installed is available in
this checkout.

Full validation is the nightly binary build itself, plus the
build-manywheel-images cuda13.4 jobs.

Authored with assistance from an AI coding assistant (Claude).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
pytorchmergebot pushed a commit that referenced this pull request Aug 7, 2026
Adds CUDA 13.4rc1 to the nightly binary matrix as "step 2" on top of the 13.4 Docker/magma tooling that already landed This mirrors #177316 for 13.2: 13.4 joins CUDA_ARCHES and CUDA_AARCH64_ARCHES, gets a manylinux2_28 and manylinuxaarch64 builder image, and gets its own runtime dependency pin set.

For the supported CUDA_ARCH_LIST, keeping in sync with 13.2 for the time being.

Review order: generate_binary_build_matrix.py holds the actual decisions, the two arch-list tables (.ci/manywheel/build_env_setup.py and torch/cuda/__init__.py) must stay in sync and are validated by the matrix script itself, build-manywheel-images.yml adds the two builder images, and the generated-* workflows are pure regeneration output.

The dependency pins come from the r13.4 wheel manifest: the toolkit metapackage is cuda-toolkit==13.4.0rc1 (components ship at 13.4.46, cublas 13.7.0.10, etc., all pulled in by the metapackage), so only the metapackage version is pinned here, matching the 13.0/13.2 entries. cuDNN 9.24.0.43, cuSPARSELt 0.8.1, NCCL 2.30.7 and NVSHMEM 3.4.5 are unchanged from 13.2 and match what install_134 installs into the builder image.

Linux x86_64 and sbsa only.

Test Plan:

Regenerated the workflows and ran the matrix script, which also runs its NCCL-pin, cuDNN-version and arch-list consistency validators at import:

Full validation is the nightly binary build itself, plus the build-manywheel-images cuda13.4 jobs.

TODO after this PR lands and binaries are available on download.pytorch.org:
Add CUDA 13.4 to docker-release.yml for official ubuntu release image

Authored with assistance from an AI coding assistant (Claude).

Pull Request resolved: #192256
Approved by: https://github.com/atalman

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ankitbhrdwj pushed a commit to ankitbhrdwj/pytorch that referenced this pull request Aug 12, 2026
Adds CUDA 13.4rc1 to the nightly binary matrix as "step 2" on top of the 13.4 Docker/magma tooling that already landed This mirrors pytorch#177316 for 13.2: 13.4 joins CUDA_ARCHES and CUDA_AARCH64_ARCHES, gets a manylinux2_28 and manylinuxaarch64 builder image, and gets its own runtime dependency pin set.

For the supported CUDA_ARCH_LIST, keeping in sync with 13.2 for the time being.

Review order: generate_binary_build_matrix.py holds the actual decisions, the two arch-list tables (.ci/manywheel/build_env_setup.py and torch/cuda/__init__.py) must stay in sync and are validated by the matrix script itself, build-manywheel-images.yml adds the two builder images, and the generated-* workflows are pure regeneration output.

The dependency pins come from the r13.4 wheel manifest: the toolkit metapackage is cuda-toolkit==13.4.0rc1 (components ship at 13.4.46, cublas 13.7.0.10, etc., all pulled in by the metapackage), so only the metapackage version is pinned here, matching the 13.0/13.2 entries. cuDNN 9.24.0.43, cuSPARSELt 0.8.1, NCCL 2.30.7 and NVSHMEM 3.4.5 are unchanged from 13.2 and match what install_134 installs into the builder image.

Linux x86_64 and sbsa only.

Test Plan:

Regenerated the workflows and ran the matrix script, which also runs its NCCL-pin, cuDNN-version and arch-list consistency validators at import:

Full validation is the nightly binary build itself, plus the build-manywheel-images cuda13.4 jobs.

TODO after this PR lands and binaries are available on download.pytorch.org:
Add CUDA 13.4 to docker-release.yml for official ubuntu release image

Authored with assistance from an AI coding assistant (Claude).

Pull Request resolved: pytorch#192256
Approved by: https://github.com/atalman

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autorevert: disable Disable autorevert for a specific PR ci: disable-autorevert Add this label to issues in order to temporarily disable autorevert ci-no-td Do not run TD on this PR ciflow/binaries Trigger all binary build and upload jobs on the PR ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged open source release notes: releng release notes category Reverted triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants