Skip to content

Add basic CUDA 13.4 CI image and periodic test - #190639

Closed
tinglvv wants to merge 1 commit into
mainfrom
tingl/add-cuda-13.4-ci
Closed

tinglvv wants to merge 1 commit into
mainfrom
tingl/add-cuda-13.4-ci

Conversation

@tinglvv

@tinglvv tinglvv commented Jul 21, 2026 •

Copy link
Copy Markdown
Collaborator

Adds CUDA 13.4 CI ubuntu image and periodic tests, mirroring #161013 for CUDA 13.0. Since 13.4 shares the
CUDA 13 major already exercised by 13.0 and 13.2, no ATen/c10/caffe2 source changes
are needed:

  • a pytorch-linux-jammy-cuda13.4-cudnn9-py3-gcc11 image in build.sh,
  • that image added to the docker-builds matrix so it is built and pushed, and
  • a linux-jammy-cuda13.4-py3.10-gcc11 build+test pair in periodic.yml running
    jit_legacy on an sm_75 g4dn runner.

Follow-up: The nogpu_AVX512 and nogpu_NO_AVX2 configs are left out for now.
They run the cpp tests under valgrind, and CUDA 13.4's libcufft.so.12.4.0.16 reads
uninitialised values while initialising itself (call_init/_dl_init, before
main). valgrind runs with --error-exitcode=1, so those reports fail the shard
even though every frame is inside the closed-source library and no PyTorch code is
involved:

==132146== Conditional jump or move depends on uninitialised value(s)
==132146==    at 0x2EED9C8A: ??? (in /usr/local/cuda-13.4/targets/x86_64-linux/lib/libcufft.so.12.4.0.16)
==132146==    by 0x21FA0EA7: __pthread_once_slow (pthread_once.c:116)
==132146==    by 0x400647D: call_init.part.0 (dl-init.c:70)
...
==132146== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 21 from 5)

All 7 gtest cases pass; only the valgrind exit code fails the shard. The cuda13.0 and
cuda13.2 periodic jobs run these same configs and pass, so this is specific to 13.4.
The configs can be restored once cuFFT stops reporting these, or once a libcufft
suppression is added to aten/tools/valgrind.sup next to the existing libcuda ones
(cf. #34169).

Test Plan:
Full validation is the docker-builds job building the new image, and the periodic
linux-jammy-cuda13.4-py3.10-gcc11 build+test.

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

cc @ptrblck @nWEIdia @eqy @atalman @malfet

@pytorch-bot

pytorch-bot Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit a766526 with merge base b0eccff (image):
💚 Looks good so far! There are no failures yet. 💚

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

@tinglvv
tinglvv marked this pull request as ready for review July 22, 2026 18:07
@tinglvv
tinglvv requested a review from a team as a code owner July 22, 2026 18:07
@tinglvv

tinglvv commented Jul 22, 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

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

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

@pytorchmergebot
pytorchmergebot force-pushed the tingl/add-cuda-13.4-ci branch from 09ab92f to 5842017 Compare July 22, 2026 18:11
@eqy
eqy requested review from atalman and nWEIdia July 22, 2026 18:17
@tinglvv tinglvv added ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR keep-going Don't stop on first failure, keep running tests until the end labels Jul 22, 2026
@nWEIdia

nWEIdia commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

The above (https://github.com/pytorch/pytorch/actions/runs/29947019889/job/89015281565?pr=190639) nvshmem failure looks concerning.

@tinglvv

tinglvv commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator Author

The above (https://github.com/pytorch/pytorch/actions/runs/29947019889/job/89015281565?pr=190639) nvshmem failure looks concerning.

 [2491/3860] Building CUDA object third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/cuda.cu.o
FAILED: [code=254] third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/cuda.cu.o 
/opt/cache/bin/sccache /usr/local/cuda/bin/nvcc -forward-unknown-to-host-compiler -DGLOO_USE_MPI=1 -I/__w/pytorch/pytorch/third_party/gloo -I/__w/pytorch/pytorch/build/third_party/gloo -I/__w/pytorch/pytorch -I/__w/pytorch/pytorch/build -isystem /__w/pytorch/pytorch/cmake/../third_party/tensorpipe/third_party/libuv/include -isystem /__w/pytorch/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /__w/pytorch/pytorch/cmake/../third_party/googletest/googletest/include -isystem /__w/pytorch/pytorch/third_party/protobuf/src -isystem /opt/python-3.10-venv/include -isystem /__w/pytorch/pytorch/third_party/ittapi/include -isystem /__w/pytorch/pytorch/cmake/../third_party/eigen -isystem /usr/lib/x86_64-linux-gnu/openmpi/include -isystem /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -isystem /usr/local/cuda/include -DLIBCUDACXX_ENABLE_SIMPLIFIED_COMPLEX_OPERATIONS -Xfatbin -compress-all -DONNX_NAMESPACE=onnx_torch -gencode arch=compute_75,code=sm_75 -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=bad_friend_decl --expt-relaxed-constexpr --expt-extended-lambda -Wno-deprecated-gpu-targets -Xcudafe --diag_suppress=cc_clobber_ignored -Xcudafe --diag_suppress=integer_sign_change -Xcudafe --diag_suppress=useless_using_declaration -Xcudafe --diag_suppress=set_but_not_used -Xcompiler -fPIC -O3 -DNDEBUG -std=c++20 -DMKL_HAS_SBGEMM -DMKL_HAS_SHGEMM -DTORCH_USE_LIBUV -MD -MT third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/cuda.cu.o -MF third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/cuda.cu.o.d -x cu -c /__w/pytorch/pytorch/third_party/gloo/gloo/cuda.cu -o third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/cuda.cu.o
fatbinary fatal   : Could not open input file 'cuda.cubin'
sccache: Compiler killed by signal 1

Looks like the issue is missing sm75 support from existing NVSHMEM 3.4.5

NVSHMEM_VERSION=3.4.5
. Should open a PR to update to latest NVSHMEM 3.7.2 which should include the sm75 support.

Comment thread .ci/docker/build.sh Resolved
@tinglvv

tinglvv commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator Author

Root cause is from sccache incompatibility with nvcc 13.3+ with the new --simt-only flag addition. Filed tracking issue in #190832. Going to disable sccache for CUDA 13.4 builds as a WAR.

@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

@atalman

atalman commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

@pytorchmergebot merge -f "all looks good, lets merge"

1 similar comment
@atalman

atalman commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

@pytorchmergebot merge -f "all looks good, lets merge"

@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: Refusing to merge: this PR modifies the CI docker images, but the .ci/docker tree of the merge commit (ab961773d434a63deaf68eb238bc3b7e46c4708a) does not match the tree that ciflow/docker built and tested on the PR head (08b9699ae14928cf7b14fa76e7bb3fcc9eed7753). Another docker-affecting change landed on the base branch after your docker images were built, so the images required after this merge were never built or tested (a land race). Please rebase this PR (e.g. @pytorchbot rebase), let the ciflow/docker builds re-run, and then merge again.

Details for Dev Infra team Raised by workflow job

@atalman

atalman commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot rebase

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

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

Builds on the previous commit (CUDA 13.4 install path + almalinux magma
image) to add the CI build/test image and a basic periodic job, mirroring
 #161013 for CUDA 13.0. Since 13.4 shares the CUDA 13 major already exercised
by 13.0, no ATen/c10/caffe2 source changes are needed -- only CI wiring:

- a pytorch-linux-jammy-cuda13.4-cudnn9-py3-gcc11 image in build.sh,
- that image added to the docker-builds matrix so it is built and pushed, and
- a linux-jammy-cuda13.4-py3.10-gcc11 build+test pair in periodic.yml running
  jit_legacy on an sm_75 g4dn runner.

The nogpu_AVX512 and nogpu_NO_AVX2 configs are deliberately left out for now.
They run the cpp tests under valgrind, and CUDA 13.4's libcufft 12.4.0.16 reads
uninitialised values while initialising itself (call_init/_dl_init, before
main). valgrind runs with --error-exitcode=1, so those reports fail the shard
even though every frame is inside the closed-source library and no PyTorch code
is involved. Add them back once cuFFT stops reporting these, or once a suppression for
libcufft is added to aten/tools/valgrind.sup alongside the existing libcuda
ones. Note the cuda13.0 and cuda13.2 periodic jobs run these same configs and
pass, so this is specific to 13.4.

No nightly binary/wheel workflows are touched: the CI image installs the CUDA
toolkit into the image and builds PyTorch from source, pulling no torch wheel.

Test Plan:
Static check locally (no Docker build host / lintrunner):

```
bash -n .ci/docker/build.sh
```

Full validation is the docker-builds job building the new image, and the
periodic linux-jammy-cuda13.4-py3.10-gcc11 build+test.

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

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

Copy link
Copy Markdown
Collaborator

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

@pytorchmergebot
pytorchmergebot force-pushed the tingl/add-cuda-13.4-ci branch from b6bc374 to a766526 Compare August 7, 2026 12:54
@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: Refusing to merge: this PR modifies the CI docker images, but the .ci/docker tree of the merge commit (ab961773d434a63deaf68eb238bc3b7e46c4708a) does not match the tree that ciflow/docker built and tested on the PR head (75ce86e4df2a88fcb08e3b7abc3afe92f0fc7f94). Another docker-affecting change landed on the base branch after your docker images were built, so the images required after this merge were never built or tested (a land race). Please rebase this PR (e.g. @pytorchbot rebase), let the ciflow/docker builds re-run, and then merge again.

Details for Dev Infra team Raised by workflow job

atalman added a commit to atalman/pytorch that referenced this pull request Aug 7, 2026
Follow-up to pytorch#191508. That PR added two gates for docker-affecting PRs. The
first, check_docker_builds_ready, requires the PR's own ciflow/docker builds to
have run and passed -- that one stays. The second, check_no_docker_merge_skew,
additionally required the .ci/docker tree of the *merge commit* to equal the
tree ciflow/docker built on the PR head, and refused the merge otherwise:

    Refusing to merge: this PR modifies the CI docker images, but the .ci/docker
    tree of the merge commit (...) does not match the tree that ciflow/docker
    built and tested on the PR head (...)

In practice that makes a docker PR win a race against the base branch. Rebasing
only helps until the next docker-affecting PR lands, so on a busy day a PR can
bounce indefinitely -- pytorch#190639 hit it twice in a row, with the PR-head tree
moving (08b9699 -> 75ce86e) while the merge-commit tree stayed the same.

Downgrade it to a warning:

- The builds-are-green requirement is unchanged: check_docker_builds_ready still
  blocks (and MandatoryChecksMissingError still makes a normal merge wait).
- A missing post-merge image is not fatal. docker-builds.yml runs on push to the
  default branch, so it publishes the merged tree's images right after the merge,
  and test-infra's calculate-docker-image polls for the image (docker manifest
  inspect, up to 120 min) before falling through to rebuilding it locally. So a
  skew costs time on the first trunk jobs rather than breaking them.
- The mismatch is still printed to the merge job log, so a slow or rebuilding
  trunk job can be correlated with the land race that caused it.

Renamed to warn_on_docker_merge_skew so the name matches the behaviour.
pytorchmergebot pushed a commit that referenced this pull request Aug 7, 2026
…arn (#192522)

Follow-up to #191508.

## What #191508 added, and what changes here

It added two gates for docker-affecting PRs, both in `merge_into` so force merges
cannot bypass them:

1. **`check_docker_builds_ready`** — the PR's own `ciflow/docker` builds must have
   run and passed. **Unchanged by this PR.** Pending builds still raise
   `MandatoryChecksMissingError` so a normal merge waits; missing/failed builds are
   still refused.
2. **`check_no_docker_merge_skew`** — additionally required the `.ci/docker` tree of
   the *merge commit* to equal the tree `ciflow/docker` built on the PR head, and
   refused the merge otherwise. **This PR downgrades it to a warning.**

So the "all the builds are green" requirement is fully retained; what goes away is
the extra requirement that the base branch not have moved.

## Why

Requiring the two trees to match means a docker PR has to win a race against the
base branch, and a rebase only helps until the next docker-affecting PR lands. On
a busy day a PR can bounce indefinitely. #190639 hit it twice in a row — the
PR-head tree moved (`08b9699a` → `75ce86e4`) after a rebase while the merge-commit
tree stayed `ab961773`:

```
Refusing to merge: this PR modifies the CI docker images, but the .ci/docker tree
of the merge commit (ab96177...) does not match the tree that ciflow/docker built
and tested on the PR head (75ce86e...)
```

**A missing post-merge image is not fatal**, which is the key point:

- `docker-builds.yml` triggers on `push` to `main` / `release/*`, so the merged
  tree's images get built and pushed right after the merge lands.
- test-infra's `calculate-docker-image` polls for the image before giving up —
  `docker manifest inspect` in a loop, `sleep 300` per iteration, up to 120
  minutes for non-docker-build jobs — and then falls through to `rebuild=true`
  and builds it locally.

So a skew costs **time** on the first trunk jobs after the merge (waiting for
docker-builds, or a local rebuild with longer TTS), not a hard failure. Trading
that against docker PRs being unable to land seems like the better default.

## Kept: the diagnostic

The mismatch is still printed to the merge job log, so a slow or rebuilding trunk
job can be correlated with the land race that caused it:

```
WARNING: docker land race on PR #NNNNN: the .ci/docker tree of the merge commit
(...) does not match the tree that ciflow/docker built and tested on the PR head
(...). ... the first trunk jobs after this merge may wait for docker-builds to
publish the merged tree's images, or rebuild them locally. Merging anyway.
```

Renamed `check_no_docker_merge_skew` → `warn_on_docker_merge_skew` so the name
matches the behaviour.

## Test plan

- `python -m pytest .github/scripts/test_trymerge.py` → **74 passed, 2 skipped**
  (the 4 docker-gate tests included; none referenced the renamed function).
- `py_compile` clean; no remaining references to the old name
  (`grep -rn check_no_docker_merge_skew .github/` → empty).
- `MergeRuleFailedError` is still used in 7 other places, so the import is not
  orphaned.

## Trade-off, stated plainly

This intentionally reopens the window that #191508 closed: a docker PR can now
land whose post-merge images were never built or tested, which is the shape of the
#190927 / #186302 land race cited in that PR. The mitigation is that the images
are auto-published by `docker-builds.yml` on the merge and that jobs wait for
them, so the failure mode is latency rather than red trunk. If dev-infra would
rather keep a hard gate, an alternative is to keep refusing only when
`check_docker_builds_ready` did **not** pass, i.e. exactly the unbuilt-image case,
and always allow the pure-skew case — happy to switch to that.

Pull Request resolved: #192522
Approved by: https://github.com/tinglvv, https://github.com/izaitsevfb, https://github.com/ezyang
@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 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
…arn (pytorch#192522)

Follow-up to pytorch#191508.

## What pytorch#191508 added, and what changes here

It added two gates for docker-affecting PRs, both in `merge_into` so force merges
cannot bypass them:

1. **`check_docker_builds_ready`** — the PR's own `ciflow/docker` builds must have
   run and passed. **Unchanged by this PR.** Pending builds still raise
   `MandatoryChecksMissingError` so a normal merge waits; missing/failed builds are
   still refused.
2. **`check_no_docker_merge_skew`** — additionally required the `.ci/docker` tree of
   the *merge commit* to equal the tree `ciflow/docker` built on the PR head, and
   refused the merge otherwise. **This PR downgrades it to a warning.**

So the "all the builds are green" requirement is fully retained; what goes away is
the extra requirement that the base branch not have moved.

## Why

Requiring the two trees to match means a docker PR has to win a race against the
base branch, and a rebase only helps until the next docker-affecting PR lands. On
a busy day a PR can bounce indefinitely. pytorch#190639 hit it twice in a row — the
PR-head tree moved (`08b9699a` → `75ce86e4`) after a rebase while the merge-commit
tree stayed `ab961773`:

```
Refusing to merge: this PR modifies the CI docker images, but the .ci/docker tree
of the merge commit (ab96177...) does not match the tree that ciflow/docker built
and tested on the PR head (75ce86e...)
```

**A missing post-merge image is not fatal**, which is the key point:

- `docker-builds.yml` triggers on `push` to `main` / `release/*`, so the merged
  tree's images get built and pushed right after the merge lands.
- test-infra's `calculate-docker-image` polls for the image before giving up —
  `docker manifest inspect` in a loop, `sleep 300` per iteration, up to 120
  minutes for non-docker-build jobs — and then falls through to `rebuild=true`
  and builds it locally.

So a skew costs **time** on the first trunk jobs after the merge (waiting for
docker-builds, or a local rebuild with longer TTS), not a hard failure. Trading
that against docker PRs being unable to land seems like the better default.

## Kept: the diagnostic

The mismatch is still printed to the merge job log, so a slow or rebuilding trunk
job can be correlated with the land race that caused it:

```
WARNING: docker land race on PR #NNNNN: the .ci/docker tree of the merge commit
(...) does not match the tree that ciflow/docker built and tested on the PR head
(...). ... the first trunk jobs after this merge may wait for docker-builds to
publish the merged tree's images, or rebuild them locally. Merging anyway.
```

Renamed `check_no_docker_merge_skew` → `warn_on_docker_merge_skew` so the name
matches the behaviour.

## Test plan

- `python -m pytest .github/scripts/test_trymerge.py` → **74 passed, 2 skipped**
  (the 4 docker-gate tests included; none referenced the renamed function).
- `py_compile` clean; no remaining references to the old name
  (`grep -rn check_no_docker_merge_skew .github/` → empty).
- `MergeRuleFailedError` is still used in 7 other places, so the import is not
  orphaned.

## Trade-off, stated plainly

This intentionally reopens the window that pytorch#191508 closed: a docker PR can now
land whose post-merge images were never built or tested, which is the shape of the
pytorch#190927 / pytorch#186302 land race cited in that PR. The mitigation is that the images
are auto-published by `docker-builds.yml` on the merge and that jobs wait for
them, so the failure mode is latency rather than red trunk. If dev-infra would
rather keep a hard gate, an alternative is to keep refusing only when
`check_docker_builds_ready` did **not** pass, i.e. exactly the unbuilt-image case,
and always allow the pure-skew case — happy to switch to that.

Pull Request resolved: pytorch#192522
Approved by: https://github.com/tinglvv, https://github.com/izaitsevfb, https://github.com/ezyang
ankitbhrdwj pushed a commit to ankitbhrdwj/pytorch that referenced this pull request Aug 12, 2026
Adds CUDA 13.4 CI ubuntu image and periodic tests, mirroring pytorch#161013 for CUDA 13.0. Since 13.4 shares the
CUDA 13 major already exercised by 13.0 and 13.2, no ATen/c10/caffe2 source changes
are needed:

- a `pytorch-linux-jammy-cuda13.4-cudnn9-py3-gcc11` image in `build.sh`,
- that image added to the `docker-builds` matrix so it is built and pushed, and
- a `linux-jammy-cuda13.4-py3.10-gcc11` build+test pair in `periodic.yml` running
  `jit_legacy` on an sm_75 g4dn runner.

Follow-up: The `nogpu_AVX512` and `nogpu_NO_AVX2` configs are left out for now.
They run the cpp tests under valgrind, and CUDA 13.4's `libcufft.so.12.4.0.16` reads
uninitialised values while initialising itself (`call_init`/`_dl_init`, before
`main`). valgrind runs with `--error-exitcode=1`, so those reports fail the shard
even though every frame is inside the closed-source library and no PyTorch code is
involved:

```
==132146== Conditional jump or move depends on uninitialised value(s)
==132146==    at 0x2EED9C8A: ??? (in /usr/local/cuda-13.4/targets/x86_64-linux/lib/libcufft.so.12.4.0.16)
==132146==    by 0x21FA0EA7: __pthread_once_slow (pthread_once.c:116)
==132146==    by 0x400647D: call_init.part.0 (dl-init.c:70)
...
==132146== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 21 from 5)
```

All 7 gtest cases pass; only the valgrind exit code fails the shard. The cuda13.0 and
cuda13.2 periodic jobs run these same configs and pass, so this is specific to 13.4.
The configs can be restored once cuFFT stops reporting these, or once a `libcufft`
suppression is added to `aten/tools/valgrind.sup` next to the existing `libcuda` ones
(cf. pytorch#34169).

Test Plan:
Full validation is the docker-builds job building the new image, and the periodic
linux-jammy-cuda13.4-py3.10-gcc11 build+test.

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

Pull Request resolved: pytorch#190639
Approved by: https://github.com/eqy, https://github.com/nWEIdia, https://github.com/atalman

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
gavinwang269 pushed a commit to gavinwang269/pytorch that referenced this pull request Aug 13, 2026
@github-actions
github-actions Bot deleted the tingl/add-cuda-13.4-ci branch November 1, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/docker ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR keep-going Don't stop on first failure, keep running tests until the end Merged open source topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants