Skip to content

[CD] Remove cu132->cu130 wheel install fallback in Dockerfile - #181513

Closed
atalman wants to merge 3 commits into
mainfrom
atalman-patch-12
Closed

atalman wants to merge 3 commits into
mainfrom
atalman-patch-12

Conversation

@atalman

@atalman atalman commented Apr 26, 2026

Copy link
Copy Markdown
Collaborator

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.

@pytorch-bot

pytorch-bot Bot commented Apr 26, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 3b29b6b with merge base 8f248fd (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Apr 26, 2026
@atalman atalman changed the title [CUDA] Dockerfile. Remove fallback CU132->CU130 [CD] Remove cu132->cu130 wheel install fallback in Dockerfile Apr 26, 2026
@atalman
atalman requested review from malfet and tinglvv April 26, 2026 13:23
On pull_request events, neither the tag-based "Setup test specific variables"
nor "Setup nightly specific variables" step matched, so INSTALL_CHANNEL was
never exported and docker.Makefile fell back to its default of `whl` (release
channel). That made PR validation try to install release wheels — broken for
new CUDA versions like 13.2.

Extend the nightly step's condition to also fire on pull_request so PRs get
INSTALL_CHANNEL=whl/nightly (and pytorch-nightly DOCKER_IMAGE / triton pin)
by default.

Authored with Claude.
@atalman
atalman requested a review from a team as a code owner April 26, 2026 20:37
@atalman

atalman commented Apr 27, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchmergebot merge -f "all looks correct"

@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

@atalman

atalman commented Apr 27, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot cherry-pick --onto release/2.12 -c "critical"

@pytorchbot

Copy link
Copy Markdown
Collaborator

Cherry picking #181513

The cherry pick PR is at #181577 and it is recommended to link a critical cherry pick PR with an issue. The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

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]>
@github-actions
github-actions Bot deleted the atalman-patch-12 branch May 28, 2026 02:28
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
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants