Skip to content

[CD] Add CUDA 13.4rc1 x86 and sbsa binaries - #192256

Closed
tinglvv wants to merge 3 commits into
mainfrom
cuda-13.4-binary-build
Closed

tinglvv wants to merge 3 commits into
mainfrom
cuda-13.4-binary-build

Conversation

@tinglvv

@tinglvv tinglvv commented Aug 5, 2026 •

Copy link
Copy Markdown
Collaborator

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

cc @ptrblck @nWEIdia @eqy @atalman @malfet

@tinglvv
tinglvv requested review from a team, Aidyn-A, eqy and syed-ahmed as code owners August 5, 2026 20:19
@pytorch-bot

pytorch-bot Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ 1 Pending, 1 Unrelated Failure

As of commit 31e409f with merge base b0eccff (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

@pytorch-bot pytorch-bot Bot added ciflow/docker release notes: releng release notes category labels Aug 5, 2026
@tinglvv tinglvv changed the title [CD] Add CUDA 13.4 x86 and sbsa binaries [CD] Add CUDA 13.4rc1 x86 and sbsa binaries Aug 5, 2026
@tinglvv

tinglvv commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author

Triggering ciflow/binaries after the manywheel images pass

@Skylion007

Copy link
Copy Markdown
Collaborator

We need to update NVSHMEM actually there is just a really incovenient rename which is why I haven't done it.

@tinglvv tinglvv added the ciflow/binaries Trigger all binary build and upload jobs on the PR label Aug 6, 2026
@tinglvv

tinglvv commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot rebase

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

tinglvv and others added 3 commits August 7, 2026 13:26
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]>
The 13.4 entry pinned cuda-toolkit==13.4.0, but 13.4.0 final is not on PyPI
yet -- only 13.4.0rc1 is. Naming the pre-release explicitly is required rather
than cosmetic: pip only considers pre-release candidates when the specifier
itself mentions one, so ==13.4.0 would have failed to resolve at install time
for every cu134 wheel.

This pin must be moved to the final 13.4.0 once it is published.

Test Plan:

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

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

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The docker-release build for 13.4 failed at the pytorch-installs stage:

  Looking in indexes: https://download.pytorch.org/whl/nightly/cu134/
  ERROR: Could not find a version that satisfies the requirement torch
  ERROR: No matching distribution found for torch

Root cause is an ordering inversion, not a bad version string.
CUDA_ARCHES_FULL_VERSION is read by exactly one consumer,
generate_docker_release_matrix.py, and the root Dockerfile it feeds installs an
*already published* torch nightly off download.pytorch.org. Adding 13.4 there
scheduled a release image that consumes cu134 wheels, while the cu134 wheels
are precisely what this stack is turning on -- so the index is still empty and
the build can never succeed.

Dropping the entry removes 13.4 from docker-release only. The wheel and
aarch64 matrices and the builder images key off CUDA_ARCHES /
CUDA_AARCH64_ARCHES, which are untouched, so cu134 nightlies still build.
CUDA_ARCHES_CUDNN_VERSION keeps its 13.4 entry: it is only read for versions
present in CUDA_ARCHES_FULL_VERSION, so it is inert today and correct when 13.4
is restored.

The alternative was to special-case cu134 in the root Dockerfile the way cu132
already is, but that case skips only torchaudio -- for cu134 nothing is
published at all, so there is no image worth building yet. Re-add the entry
once cu134 is on the nightly index.

Test Plan:

Confirmed 13.4 is gone from the docker release matrix but still present in the
wheel matrices, and that regenerating the workflows is a no-op:

```
python3 .github/scripts/generate_docker_release_matrix.py | python3 -m json.tool | grep '"cuda"' | sort -u
python3 .github/scripts/generate_binary_build_matrix.py
python3 .github/scripts/generate_ci_workflows.py
```

giving docker release cuda in {12.6, 13.0, 13.2, cpu}, and wheels:

```
linux ['cu126', 'cu130', 'cu132', 'cu134']
linux-aarch64 ['cu126', 'cu130', 'cu132', 'cu134']
windows ['cu126', 'cu130', 'cu132']
```

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

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Successfully rebased cuda-13.4-binary-build onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout cuda-13.4-binary-build && git pull --rebase)

@pytorchmergebot
pytorchmergebot force-pushed the cuda-13.4-binary-build branch from 40436da to 31e409f Compare August 7, 2026 13:27
@atalman

atalman commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

@pytorchmergebot merge -f "all looks 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

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: PR #192256 has not been reviewed yet

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@tinglvv

tinglvv commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

The 13.4 wheel test failed across the board, checking. Let's hold the merge until the test passes.

@tinglvv

tinglvv commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

It appears multiple packages are not yet updated in https://download.pytorch.org/whl/nightly/cu134, for example setuptools, causing the failure. Rerun the test after the s3 upload index job finishes https://github.com/pytorch/test-infra/actions/runs/31205987861/job/92957049089

Looking in indexes: https://download.pytorch.org/whl/nightly/cu134
Processing /final_pkgs/torch-2.14.0.dev20260807+cu134-cp310-cp310-manylinux_2_28_aarch64.whl
Collecting filelock (from torch==2.14.0.dev20260807+cu134)
  Downloading filelock-3.32.2-py3-none-any.whl.metadata (2.0 kB)
ERROR: Could not find a version that satisfies the requirement setuptools>=77.0.3 (from torch) (from versions: none)

@atalman

atalman commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

@pytorchmergebot merge -f "cu134 binaries and lint look good, lets land"

@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

pytorchmergebot pushed a commit that referenced this pull request Aug 12, 2026
Small PR building on top of #190639 / #192256 to use the cuda-bindings 13.4 beta for the CUDA 13.4 image specifically.

This unblocks testing of PRs requiring CUDA 13.4 + cuda-bindings (e.g. #190656)

CC: @tinglvv @nWEIdia @atalman @malfet @eqy @ptrblck
Pull Request resolved: #192769
Approved by: https://github.com/tinglvv, https://github.com/atalman
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]>
gavinwang269 pushed a commit to gavinwang269/pytorch that referenced this pull request Aug 13, 2026
Vinnie6167 added a commit to Vinnie6167/flashinfer that referenced this pull request Aug 19, 2026
The published flashinfer-jit-cache wheels contain no SM107 code, so Rubin users
hit "no kernel image is available for execution on the device" (flashinfer-ai#4363). The
cu13.0 wheel ships sm_75 sm_80 sm_89 sm_90a sm_100a sm_103a sm_120f (+ sm_110a
sm_121a on aarch64); sm_100a and sm_103a are architecture-specific and will not
load on SM107, and there is no sm_100f family target to fall back to.

Add a fourth CUDA to the jit-cache matrix rather than altering the existing
ones. 13.4 is required, not merely preferred: nvcc gains compute_107 only in
CUDA 13.4 (--list-gpu-arch: 13.2 no, 13.3 no, 13.4 yes). It cannot be
backported to the cu13.0 tier, because the modules whose call sites do not pass
map_sm107_to_100f emit -gencode=arch=compute_107a verbatim and would fail the
build there.

Setting 10.7a does two distinct things:

  - Modules built through the call sites that pass map_sm107_to_100f=True get
    -gencode=arch=compute_100f,code=sm_100f, because the bundled CUTLASS has no
    struct Sm107 yet (cutlass_supports_sm107()). Measured on a cu13.4 build of
    this tree: 820 of 1007 modules.
  - Everything else compiles native sm_107a (7 of 1007), and has_sm107 in
    aot.py flips true, which is what pulls in the four Rubin-only modules:
    fp4_quantization_107, fused_moe_trtllm_sm107, trtllm_gemm_sm107 and
    trtllm_low_latency_gemm_sm107.

DOCKER_IMAGE needs no special case: it already interpolates matrix.cuda, so
this resolves to pytorch/manylinux2_28-builder:cuda13.4 and
pytorch/manylinuxaarch64-builder:cuda13.4, both published on Docker Hub since
2026-08-14 (pytorch/pytorch#192256).

Also extends the hardcoded upload loop to 134. A matrix entry missing from that
list builds successfully and is then silently never attached to the release.

test-nightly-build deliberately stays at cuda 12.9/13.0: it runs on sm86
runners and consumes only x86_64 artifacts, so it cannot exercise SM107 either
way.

The cu12.8 / cu12.9 / cu13.0 arch lists are unchanged; only the new tier
differs.

Validation so far: a cu13.4 x86_64 wheel built from this tree is 1.790 GiB,
89.5% of GitHub's 2 GiB release-asset limit. The aarch64 figure is still being
measured -- see the PR description.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
kahyunnam pushed a commit to flashinfer-ai/flashinfer that referenced this pull request Aug 19, 2026
The published flashinfer-jit-cache wheels contain no SM107 code, so Rubin users
hit "no kernel image is available for execution on the device" (#4363). The
cu13.0 wheel ships sm_75 sm_80 sm_89 sm_90a sm_100a sm_103a sm_120f (+ sm_110a
sm_121a on aarch64); sm_100a and sm_103a are architecture-specific and will not
load on SM107, and there is no sm_100f family target to fall back to.

Add a fourth CUDA to the jit-cache matrix rather than altering the existing
ones. 13.4 is required, not merely preferred: nvcc gains compute_107 only in
CUDA 13.4 (--list-gpu-arch: 13.2 no, 13.3 no, 13.4 yes). It cannot be
backported to the cu13.0 tier, because the modules whose call sites do not pass
map_sm107_to_100f emit -gencode=arch=compute_107a verbatim and would fail the
build there.

Setting 10.7a does two distinct things:

  - Modules built through the call sites that pass map_sm107_to_100f=True get
    -gencode=arch=compute_100f,code=sm_100f, because the bundled CUTLASS has no
    struct Sm107 yet (cutlass_supports_sm107()). Measured on a cu13.4 build of
    this tree: 820 of 1007 modules.
  - Everything else compiles native sm_107a (7 of 1007), and has_sm107 in
    aot.py flips true, which is what pulls in the four Rubin-only modules:
    fp4_quantization_107, fused_moe_trtllm_sm107, trtllm_gemm_sm107 and
    trtllm_low_latency_gemm_sm107.

DOCKER_IMAGE needs no special case: it already interpolates matrix.cuda, so
this resolves to pytorch/manylinux2_28-builder:cuda13.4 and
pytorch/manylinuxaarch64-builder:cuda13.4, both published on Docker Hub since
2026-08-14 (pytorch/pytorch#192256).

Also extends the hardcoded upload loop to 134. A matrix entry missing from that
list builds successfully and is then silently never attached to the release.

test-nightly-build deliberately stays at cuda 12.9/13.0: it runs on sm86
runners and consumes only x86_64 artifacts, so it cannot exercise SM107 either
way.

The cu12.8 / cu12.9 / cu13.0 arch lists are unchanged; only the new tier
differs.

Validation so far: a cu13.4 x86_64 wheel built from this tree is 1.790 GiB,
89.5% of GitHub's 2 GiB release-asset limit. The aarch64 figure is still being
measured -- see the PR description.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
(cherry picked from commit 575bfa1)
tushar00jain added a commit to tushar00jain/torchcomms that referenced this pull request Aug 25, 2026
…orch#3755)

Summary:

torchcomms generates its wheel build matrix from `pytorch/test-infra@main`, so a
new CUDA version appears in our matrix the moment it is added upstream -- which
can be days before the matching torch nightly reaches `download.pytorch.org`.

This happened with CUDA 13.4 (D115257402 / pytorch/pytorch#192256, landed
2026-08-07). cu134 entered our matrix immediately, but the first cu134 torch
nightly did not reach the index until 2026-08-08. In between, every cu134
coordinate failed at the `pip install torch` step, produced no artifact, and the
downstream upload job reported the misleading error:

  Artifact not found for name: meta-pytorch_torchcomms__3.10_cu134_x86_64

The reported failure is in the upload job; the actual failure is in the build job
for the same coordinate. That misdirection is most of the debugging cost.

Add a `filter-matrix` job that checks whether a matching torch wheel is actually
published before letting a coordinate through. Matching is on CUDA version,
CPython tag (including free-threaded variants: `3.14t` -> `cp314-cp314t`) and
architecture.

On x86 the job is chained after the existing `configure-matrix`
(`generate-matrix` -> `configure-matrix` -> `filter-matrix` -> `build`) so the
`validation_runner` values that `configure-matrix` patches in are preserved.
On aarch64, which has no `configure-matrix`, it sits directly after
`generate-matrix`. Non-CUDA coordinates -- including ROCm, now that `with-rocm`
is enabled on x86 -- pass through untouched.

The index is S3-backed, so a CUDA prefix that was never written answers `403
AccessDenied` rather than `404` -- both mean "nothing published". The check
classifies three ways:

| index response         | meaning              | action |
|------------------------|----------------------|--------|
| 200, no matching wheel | not published yet    | drop   |
| 403 / 404              | prefix never written | drop   |
| timeout / 5xx / DNS    | inconclusive         | keep   |

Keeping on inconclusive is deliberate. A transient index failure must not
silently shrink the matrix -- a green run with missing wheels is worse than a red
one. Every drop is written to stderr and `GITHUB_STEP_SUMMARY` so a column that
quietly stops building stays visible.

Scope is torchcomms only. The shared test-infra matrix is untouched, so other
Nova consumers are unaffected. A probe inside the shared matrix would risk
silently shrinking the matrix for all ~17 consumer repos at once; the right
shared-side fix is ordering discipline -- do not add a CUDA version to the Nova
matrix until its nightlies are on the index.

This covers the "wheels are not up yet" window only. cu134 also failed on
2026-08-09 and 2026-08-10 with torch present on the index; that is a separate,
still-unexplained failure and is not addressed here.

Reviewed By: kapilsh

Differential Revision: D115730324
tushar00jain added a commit to tushar00jain/torchcomms that referenced this pull request Aug 25, 2026
…orch#3755)

Summary:

torchcomms generates its wheel build matrix from `pytorch/test-infra@main`, so a
new CUDA version appears in our matrix the moment it is added upstream -- which
can be days before the matching torch nightly reaches `download.pytorch.org`.

This happened with CUDA 13.4 (D115257402 / pytorch/pytorch#192256, landed
2026-08-07). cu134 entered our matrix immediately, but the first cu134 torch
nightly did not reach the index until 2026-08-08. In between, every cu134
coordinate failed at the `pip install torch` step, produced no artifact, and the
downstream upload job reported the misleading error:

  Artifact not found for name: meta-pytorch_torchcomms__3.10_cu134_x86_64

The reported failure is in the upload job; the actual failure is in the build job
for the same coordinate. That misdirection is most of the debugging cost.

Add a `filter-matrix` job that checks whether a matching torch wheel is actually
published before letting a coordinate through. Matching is on CUDA version,
CPython tag (including free-threaded variants: `3.14t` -> `cp314-cp314t`) and
architecture.

On x86 the job is chained after the existing `configure-matrix`
(`generate-matrix` -> `configure-matrix` -> `filter-matrix` -> `build`) so the
`validation_runner` values that `configure-matrix` patches in are preserved.
On aarch64, which has no `configure-matrix`, it sits directly after
`generate-matrix`. Non-CUDA coordinates -- including ROCm, now that `with-rocm`
is enabled on x86 -- pass through untouched.

The index is S3-backed, so a CUDA prefix that was never written answers `403
AccessDenied` rather than `404` -- both mean "nothing published". The check
classifies three ways:

| index response         | meaning              | action |
|------------------------|----------------------|--------|
| 200, no matching wheel | not published yet    | drop   |
| 403 / 404              | prefix never written | drop   |
| timeout / 5xx / DNS    | inconclusive         | keep   |

Keeping on inconclusive is deliberate. A transient index failure must not
silently shrink the matrix -- a green run with missing wheels is worse than a red
one. Every drop is written to stderr and `GITHUB_STEP_SUMMARY` so a column that
quietly stops building stays visible.

Scope is torchcomms only. The shared test-infra matrix is untouched, so other
Nova consumers are unaffected. A probe inside the shared matrix would risk
silently shrinking the matrix for all ~17 consumer repos at once; the right
shared-side fix is ordering discipline -- do not add a CUDA version to the Nova
matrix until its nightlies are on the index.

This covers the "wheels are not up yet" window only. cu134 also failed on
2026-08-09 and 2026-08-10 with torch present on the index; that is a separate,
still-unexplained failure and is not addressed here.

Reviewed By: kapilsh

Differential Revision: D115730324
meta-codesync Bot pushed a commit to meta-pytorch/torchcomms that referenced this pull request Aug 25, 2026
Summary:
Pull Request resolved: #3755

torchcomms generates its wheel build matrix from `pytorch/test-infra@main`, so a
new CUDA version appears in our matrix the moment it is added upstream -- which
can be days before the matching torch nightly reaches `download.pytorch.org`.

This happened with CUDA 13.4 (D115257402 / pytorch/pytorch#192256, landed
2026-08-07). cu134 entered our matrix immediately, but the first cu134 torch
nightly did not reach the index until 2026-08-08. In between, every cu134
coordinate failed at the `pip install torch` step, produced no artifact, and the
downstream upload job reported the misleading error:

  Artifact not found for name: meta-pytorch_torchcomms__3.10_cu134_x86_64

The reported failure is in the upload job; the actual failure is in the build job
for the same coordinate. That misdirection is most of the debugging cost.

Add a `filter-matrix` job that checks whether a matching torch wheel is actually
published before letting a coordinate through. Matching is on CUDA version,
CPython tag (including free-threaded variants: `3.14t` -> `cp314-cp314t`) and
architecture.

On x86 the job is chained after the existing `configure-matrix`
(`generate-matrix` -> `configure-matrix` -> `filter-matrix` -> `build`) so the
`validation_runner` values that `configure-matrix` patches in are preserved.
On aarch64, which has no `configure-matrix`, it sits directly after
`generate-matrix`. Non-CUDA coordinates -- including ROCm, now that `with-rocm`
is enabled on x86 -- pass through untouched.

The index is S3-backed, so a CUDA prefix that was never written answers `403
AccessDenied` rather than `404` -- both mean "nothing published". The check
classifies three ways:

| index response         | meaning              | action |
|------------------------|----------------------|--------|
| 200, no matching wheel | not published yet    | drop   |
| 403 / 404              | prefix never written | drop   |
| timeout / 5xx / DNS    | inconclusive         | keep   |

Keeping on inconclusive is deliberate. A transient index failure must not
silently shrink the matrix -- a green run with missing wheels is worse than a red
one. Every drop is written to stderr and `GITHUB_STEP_SUMMARY` so a column that
quietly stops building stays visible.

Scope is torchcomms only. The shared test-infra matrix is untouched, so other
Nova consumers are unaffected. A probe inside the shared matrix would risk
silently shrinking the matrix for all ~17 consumer repos at once; the right
shared-side fix is ordering discipline -- do not add a CUDA version to the Nova
matrix until its nightlies are on the index.

This covers the "wheels are not up yet" window only. cu134 also failed on
2026-08-09 and 2026-08-10 with torch present on the index; that is a separate,
still-unexplained failure and is not addressed here.

Reviewed By: kapilsh

Differential Revision: D115730324

fbshipit-source-id: 8a34cb5a3987567e2395f73f230a40e164302d6a
@github-actions
github-actions Bot deleted the cuda-13.4-binary-build branch November 1, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/binaries Trigger all binary build and upload jobs on the PR ciflow/docker Merged open source release notes: releng release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants