Repository navigation
Conversation
CUDA_ARCHES is ["12.6", "13.0", "13.2"], so nothing below 12.6 is built or shipped any more. Remove the leftovers and make the minimum explicit: - cmake/public/cuda.cmake: require CUDA 12.6, was 12.1. This narrows the source-build range: building against 12.1-12.5 now fails fast with a clear message instead of compiling an untested configuration. - .ci/docker/build.sh: drop the pytorch-linux-jammy-cuda12.4-cudnn9-py3-gcc11 image config. It is orphaned -- no workflow or docker-builds.yml entry requests it, so it was never built. - .ci/docker/common/install_cuda.sh: drop install_124() and its "12.4" dispatch arm. With the image config above gone there is no caller left. - .ci/docker/manywheel/Dockerfile_2_28: ARG BASE_CUDA_VERSION default 11.8 -> 12.6, matching the three other stages in the same file. - docker.Makefile: CUDA_VERSION 12.1.1 -> 12.6.3 and CUDA_VERSION_SHORT 12.1 -> 12.6. The old default resolved CUDA_PATH to cu121, an index that no longer receives builds. - README.md: the Dockerfile prose said CUDA 12.1. The C++ CUDA_VERSION preprocessor guards are intentionally left alone; dropping those branches is a separate, larger change.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/192257
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit 8c8524c with merge base c9f91bd ( CRCR (non-blocking) - The following CRCR downstream CI jobs failed but are non-blocking:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
PR requires human review Whyreason: |
|
@pytorchmergebot merge -f "lint and the builds look ok" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: This PR changes files under .ci/docker/, so the Details for Dev Infra teamRaised by workflow job |
|
Are we dropping fwd comparability driver version too or nah? If we require a minimum CUDA 12.6 driver version we can enable |
|
HI @Skylion007 lets create an issue for dropping diver version as well |
|
@pytorchmergebot merge -f "lint and the builds look ok" |
1 similar comment
|
@pytorchmergebot merge -f "lint and the builds look ok" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: Refusing to merge: this PR modifies the CI docker images, but the .ci/docker tree of the merge commit (8ba2d60f0c17bd9eafd87fa7aa0f243a3239146f) does not match the tree that ciflow/docker built and tested on the PR head (f5cdf8361d2fc3ff6a82ae2ce0c298939bb4a25a). 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. Details for Dev Infra teamRaised by workflow job |
|
@pytorchmergebot merge -f "lint and the builds look ok" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
@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:
Note: This revert was accelerated by the AI advisor: AI advisor: related (confidence=0.92); AI advisor: related (confidence=0.92); AI advisor: related (confidence=0.92) Please investigate and fix the issues. |
|
Claude finished @pytorch-auto-revert[bot]'s task in 7m 13s —— View job Diagnosis: the revert is legitimate, but the diff is not buggy — the CI images for this commit were never pushed
Summary: All three attributed DetailsWhat the logs actually showNone of the three jobs compiled anything. All three failed at step 2, So this is not a build break, not the raised cmake CUDA floor, and not the removed Why this PR is nonetheless the causePer The rebuild at that hash only partly succeeded. Evidence that the hash itself is fine and only this variant is missing: in the same trunk run, That is exactly what the merge bot warned about on 2026-08-06, and it names the same image:
The underlying docker-build failures were genuine infra flake (DrCI classified them as remote BuildKit Guidance for the reland
No code changes made; this is diagnosis only. |
|
@pytorchbot successfully started a revert job. Check the current status here. |
…ed minimum (#192257)" This reverts commit 762ffb7. Reverted #192257 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](#192257 (comment)))
|
@atalman your PR has been successfully reverted. |
|
@pytorchbot merge -f 'This is wrongly reverted' |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: This PR changes files under .ci/docker/, so the Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -f 'This is wrongly reverted' |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…um (pytorch#192257) `CUDA_ARCHES = ["12.6", "13.0", "13.2"]`, so nothing below 12.6 is built or shipped any more. This removes the CI/CD leftovers and makes the minimum explicit. ## Changes | file | change | |---|---| | `cmake/public/cuda.cmake` | require CUDA **12.6**, was 12.1 | | `.ci/docker/build.sh` | drop the `pytorch-linux-jammy-cuda12.4-cudnn9-py3-gcc11` image config | | `.ci/docker/common/install_cuda.sh` | drop `install_124()` and its `12.4` dispatch arm | | `.ci/docker/manywheel/Dockerfile_2_28` | `ARG BASE_CUDA_VERSION` default `11.8` → `12.6` | | `docker.Makefile` | `CUDA_VERSION` `12.1.1` → `12.6.3`, `CUDA_VERSION_SHORT` `12.1` → `12.6` | | `README.md` | Dockerfile prose said CUDA 12.1 | ### Notes on each - **The 12.4 image config is orphaned.** `grep -rn "cuda12\.4" .github/ .ci/` returns only the definition in `build.sh` itself — no workflow and no `docker-builds.yml` entry ever requests it, so it has not been built. With it gone, `install_124()` has no remaining caller (verified: `grep -rn install_124` is empty after the change). - **`docker.Makefile` was actively broken.** The 12.1 default made `CUDA_PATH = cu121`, and the Dockerfile installs torch from `download.pytorch.org/whl/$CUDA_PATH` — an index that no longer receives builds. 12.6.3 matches the version `install_126()` installs. - **`ARG BASE_CUDA_VERSION=11.8`** was the only stale default in that file; the three other stages (`cuda`, `magma`, `cpu_final`) already default to 12.6. ## Scope **Raising the cmake minimum narrows the source-build range**: building against CUDA 12.1–12.5 now fails fast with `PyTorch requires CUDA 12.6 or above` instead of compiling an untested configuration. That is the intended, user-visible part of this change — flagging it explicitly for reviewers. The **C++ `CUDA_VERSION` preprocessor guards are deliberately untouched.** There are 34 such guard lines under 12060 in `aten/`, `torch/` and `c10/` (26 × `12040`, 4 × `12000`, 2 × `12030`, 1 × `12050`, 1 × `11060`). Removing those branches touches kernel and runtime code and each site needs the correct branch kept, so it belongs in its own reviewed change. ## Test plan `bash -n` clean on both edited shell scripts. No dangling references to the removed image config or install function. Nothing else in the tree selects CUDA < 12.6. Pull Request resolved: pytorch#192257 Approved by: https://github.com/ngimel, https://github.com/tinglvv
…ed minimum (pytorch#192257)" This reverts commit 762ffb7. Reverted pytorch#192257 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#192257 (comment)))
…um (pytorch#192257) `CUDA_ARCHES = ["12.6", "13.0", "13.2"]`, so nothing below 12.6 is built or shipped any more. This removes the CI/CD leftovers and makes the minimum explicit. ## Changes | file | change | |---|---| | `cmake/public/cuda.cmake` | require CUDA **12.6**, was 12.1 | | `.ci/docker/build.sh` | drop the `pytorch-linux-jammy-cuda12.4-cudnn9-py3-gcc11` image config | | `.ci/docker/common/install_cuda.sh` | drop `install_124()` and its `12.4` dispatch arm | | `.ci/docker/manywheel/Dockerfile_2_28` | `ARG BASE_CUDA_VERSION` default `11.8` → `12.6` | | `docker.Makefile` | `CUDA_VERSION` `12.1.1` → `12.6.3`, `CUDA_VERSION_SHORT` `12.1` → `12.6` | | `README.md` | Dockerfile prose said CUDA 12.1 | ### Notes on each - **The 12.4 image config is orphaned.** `grep -rn "cuda12\.4" .github/ .ci/` returns only the definition in `build.sh` itself — no workflow and no `docker-builds.yml` entry ever requests it, so it has not been built. With it gone, `install_124()` has no remaining caller (verified: `grep -rn install_124` is empty after the change). - **`docker.Makefile` was actively broken.** The 12.1 default made `CUDA_PATH = cu121`, and the Dockerfile installs torch from `download.pytorch.org/whl/$CUDA_PATH` — an index that no longer receives builds. 12.6.3 matches the version `install_126()` installs. - **`ARG BASE_CUDA_VERSION=11.8`** was the only stale default in that file; the three other stages (`cuda`, `magma`, `cpu_final`) already default to 12.6. ## Scope **Raising the cmake minimum narrows the source-build range**: building against CUDA 12.1–12.5 now fails fast with `PyTorch requires CUDA 12.6 or above` instead of compiling an untested configuration. That is the intended, user-visible part of this change — flagging it explicitly for reviewers. The **C++ `CUDA_VERSION` preprocessor guards are deliberately untouched.** There are 34 such guard lines under 12060 in `aten/`, `torch/` and `c10/` (26 × `12040`, 4 × `12000`, 2 × `12030`, 1 × `12050`, 1 × `11060`). Removing those branches touches kernel and runtime code and each site needs the correct branch kept, so it belongs in its own reviewed change. ## Test plan `bash -n` clean on both edited shell scripts. No dangling references to the removed image config or install function. Nothing else in the tree selects CUDA < 12.6. Pull Request resolved: pytorch#192257 Approved by: https://github.com/ngimel, https://github.com/tinglvv
Companion to #192257 (CUDA < 12.6). `ROCM_ARCHES = ["7.2", "7.14"]`, so nothing below 7.1 is built or shipped any more. ## Changes | file | change | |---|---| | `.ci/docker/manywheel/Dockerfile_2_28` | `ARG ROCM_VERSION=6.0` → bare `ARG ROCM_VERSION` | | `.ci/docker/manywheel/build.sh` | drop the 7.0 and 6.4 patch-version fixups | | `.ci/docker/common/install_rocm.sh` | drop 4 dead version-gated blocks (see below) | | `.ci/pytorch/test.sh` | ROCm benchmark baseline `rocm6.4` → `rocm7.2` | | `.ci/magma-rocm/README.md` | example target `magma-rocm63` → `magma-rocm72` | ### `install_rocm.sh` - the **6.4 patch-version fixup** (`ver == 6.4 → 6.4.2`); - **`rocm-llvm-dev` is now installed unconditionally** — the `>= 6.1` guard can no longer be false; - the **`< 7.1` precompiled-MIOpen-kernel branch**, which is dead by the comment's own admission ("removed in ROCm 7.1"); - the **6.4-only clr/HIP rebuild** (~30 lines gated on `>= 6.4 && < 7.0`) that worked around the ROCm 6.3/6.4 static-code-object regression, including the pinned `HIP_TAG`/`CLR_HASH` values and the `libamdhip64.so.6.4.*` copy. ### The two that are not pure deletions - **`ARG ROCM_VERSION=6.0`** — the value you flagged. Dropped the default rather than bumping it, so it matches the `rocm_final` stage in the same file; `manywheel/build.sh` always passes `--build-arg ROCM_VERSION`. - **`.ci/pytorch/test.sh`** — this one was a live bug, not just cruft. The ROCm benchmark baseline installed nightlies from `whl/nightly/rocm6.4`, while the comment directly above says to keep the version in sync with the benchmarks docker image — and that image is `ROCM_VERSION=7.2` (`.ci/docker/build.sh`, `pytorch-linux-jammy-rocm-n-py3-benchmarks`). Now points at `rocm7.2`. ## Deliberately left alone - The **C++ `ROCM_VERSION` preprocessor guards**: 37 lines below `70100` in `aten/`, `torch/`, `c10/` (23 × `70000`, 6 × `60500`, 6 × `60300`, 2 × `60400`). Same reasoning as the CUDA PR — separate, larger change. - The **MIOpen kdb `journal_mode` loop.** Its comment calls it a ROCm 6.0 workaround, so it looks like a candidate, but it is *not* version-gated — it runs for 7.x too, so deleting it would change current behaviour rather than remove dead code. Worth a follow-up if ROCm folks confirm it is obsolete. - There is **no cmake ROCm minimum** to raise (no `ROCM_VERSION VERSION_LESS` check exists), so this PR has no source-build-narrowing counterpart to the CUDA one. ## Test plan `bash -n` and `shellcheck -S error` clean on all three edited shell scripts. No references to ROCm 6.x or 7.0 remain in the touched files. Remaining `rocm6.x` strings elsewhere in `.ci/` are illustrative comments and docstrings (e.g. "`e.g. manylinux2_28-builder:rocm6.2.4 returns 6.2.4`"). Pull Request resolved: #192258 Approved by: https://github.com/pytorchgreenlight, https://github.com/jeffdaily
Companion to pytorch#192257 (CUDA < 12.6). `ROCM_ARCHES = ["7.2", "7.14"]`, so nothing below 7.1 is built or shipped any more. ## Changes | file | change | |---|---| | `.ci/docker/manywheel/Dockerfile_2_28` | `ARG ROCM_VERSION=6.0` → bare `ARG ROCM_VERSION` | | `.ci/docker/manywheel/build.sh` | drop the 7.0 and 6.4 patch-version fixups | | `.ci/docker/common/install_rocm.sh` | drop 4 dead version-gated blocks (see below) | | `.ci/pytorch/test.sh` | ROCm benchmark baseline `rocm6.4` → `rocm7.2` | | `.ci/magma-rocm/README.md` | example target `magma-rocm63` → `magma-rocm72` | ### `install_rocm.sh` - the **6.4 patch-version fixup** (`ver == 6.4 → 6.4.2`); - **`rocm-llvm-dev` is now installed unconditionally** — the `>= 6.1` guard can no longer be false; - the **`< 7.1` precompiled-MIOpen-kernel branch**, which is dead by the comment's own admission ("removed in ROCm 7.1"); - the **6.4-only clr/HIP rebuild** (~30 lines gated on `>= 6.4 && < 7.0`) that worked around the ROCm 6.3/6.4 static-code-object regression, including the pinned `HIP_TAG`/`CLR_HASH` values and the `libamdhip64.so.6.4.*` copy. ### The two that are not pure deletions - **`ARG ROCM_VERSION=6.0`** — the value you flagged. Dropped the default rather than bumping it, so it matches the `rocm_final` stage in the same file; `manywheel/build.sh` always passes `--build-arg ROCM_VERSION`. - **`.ci/pytorch/test.sh`** — this one was a live bug, not just cruft. The ROCm benchmark baseline installed nightlies from `whl/nightly/rocm6.4`, while the comment directly above says to keep the version in sync with the benchmarks docker image — and that image is `ROCM_VERSION=7.2` (`.ci/docker/build.sh`, `pytorch-linux-jammy-rocm-n-py3-benchmarks`). Now points at `rocm7.2`. ## Deliberately left alone - The **C++ `ROCM_VERSION` preprocessor guards**: 37 lines below `70100` in `aten/`, `torch/`, `c10/` (23 × `70000`, 6 × `60500`, 6 × `60300`, 2 × `60400`). Same reasoning as the CUDA PR — separate, larger change. - The **MIOpen kdb `journal_mode` loop.** Its comment calls it a ROCm 6.0 workaround, so it looks like a candidate, but it is *not* version-gated — it runs for 7.x too, so deleting it would change current behaviour rather than remove dead code. Worth a follow-up if ROCm folks confirm it is obsolete. - There is **no cmake ROCm minimum** to raise (no `ROCM_VERSION VERSION_LESS` check exists), so this PR has no source-build-narrowing counterpart to the CUDA one. ## Test plan `bash -n` and `shellcheck -S error` clean on all three edited shell scripts. No references to ROCm 6.x or 7.0 remain in the touched files. Remaining `rocm6.x` strings elsewhere in `.ci/` are illustrative comments and docstrings (e.g. "`e.g. manylinux2_28-builder:rocm6.2.4 returns 6.2.4`"). Pull Request resolved: pytorch#192258 Approved by: https://github.com/pytorchgreenlight, https://github.com/jeffdaily
CUDA_ARCHES = ["12.6", "13.0", "13.2"], so nothing below 12.6 is built orshipped any more. This removes the CI/CD leftovers and makes the minimum
explicit.
Changes
cmake/public/cuda.cmake.ci/docker/build.shpytorch-linux-jammy-cuda12.4-cudnn9-py3-gcc11image config.ci/docker/common/install_cuda.shinstall_124()and its12.4dispatch arm.ci/docker/manywheel/Dockerfile_2_28ARG BASE_CUDA_VERSIONdefault11.8→12.6docker.MakefileCUDA_VERSION12.1.1→12.6.3,CUDA_VERSION_SHORT12.1→12.6README.mdNotes on each
grep -rn "cuda12\.4" .github/ .ci/returns only the definition in
build.shitself — no workflow and nodocker-builds.ymlentry ever requests it, so it has not been built. With itgone,
install_124()has no remaining caller (verified:grep -rn install_124is empty after the change).
docker.Makefilewas actively broken. The 12.1 default madeCUDA_PATH = cu121, and the Dockerfile installs torch fromdownload.pytorch.org/whl/$CUDA_PATH— an index that no longer receivesbuilds. 12.6.3 matches the version
install_126()installs.ARG BASE_CUDA_VERSION=11.8was the only stale default in that file; thethree other stages (
cuda,magma,cpu_final) already default to 12.6.Scope
Raising the cmake minimum narrows the source-build range: building against
CUDA 12.1–12.5 now fails fast with
PyTorch requires CUDA 12.6 or aboveinsteadof compiling an untested configuration. That is the intended, user-visible part
of this change — flagging it explicitly for reviewers.
The C++
CUDA_VERSIONpreprocessor guards are deliberately untouched. Thereare 34 such guard lines under 12060 in
aten/,torch/andc10/(26 ×12040, 4 ×12000, 2 ×12030, 1 ×12050, 1 ×11060). Removing thosebranches touches kernel and runtime code and each site needs the correct branch
kept, so it belongs in its own reviewed change.
Test plan
bash -nclean on both edited shell scripts. No dangling references to theremoved image config or install function. Nothing else in the tree selects CUDA
< 12.6.