Skip to content

[ROCm][CI] Switch rocm-nightly from tarballs back to TheRock wheels - #179639

Closed
ethanwee1 wants to merge 13 commits into
pytorch:mainfrom
ethanwee1:experiment/rocm-nightly-wheels
Closed

ethanwee1 wants to merge 13 commits into
pytorch:mainfrom
ethanwee1:experiment/rocm-nightly-wheels

Conversation

@ethanwee1

@ethanwee1 ethanwee1 commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor

Switch rocm-nightly from TheRock tarball installs to the multi-arch TheRock wheel index.

This keeps the source build targeted to gfx942 while installing ROCm from https://rocm.nightlies.amd.com/whl-staging-multi-arch/ with the device-all extra, so the image gets the complete multi-arch ROCm wheel set without compiling PyTorch for every architecture.

The earlier 8h build timeout from expanding PYTORCH_ROCM_ARCH to every TheRock target is fixed by reverting PYTORCH_ROCM_ARCH back to gfx942; the latest rocm-nightly build passed in about 1h51m.

ROCm environment exports were audited and trimmed for the TheRock wheel install path. The reduced /etc/rocm_env.sh keeps only the paths needed for PyTorch to discover and link against the wheel-provided ROCm SDK.

Removed from the TheRock nightly /etc/rocm_env.sh exports:

  • ROCM_SOURCE_DIR
  • ROCM_BIN
  • ROCM_CMAKE
  • CMAKE_PREFIX_PATH
  • HIP_DEVICE_LIB_PATH
  • ROCM_DEVICE_LIB_PATH
  • MAGMA_HOME

Also removed the stale image-level /opt/rocm defaults from ubuntu-rocm/Dockerfile so rocm-nightly does not inherit tarball-era values after switching to wheels:

  • ROCM_PATH
  • ROCM_HOME
  • ROCM_SOURCE_DIR
  • ROCM_BIN
  • ROCM_CMAKE
  • ROCM_DEVICE_LIB_PATH
  • HIP_DEVICE_LIB_PATH
  • MAGMA_HOME
  • /opt/rocm additions to PATH
  • /opt/rocm/lib additions to LD_LIBRARY_PATH

Validation:

  • Rebuilt the rocm-nightly image with the trimmed ROCm environment exports.
  • Ran a full PyTorch ROCm source build with .ci/pytorch/build.sh using BUILD_ENVIRONMENT=linux-noble-rocm-nightly-py3.12-gfx942, PYTORCH_ROCM_ARCH=gfx942, and USE_ROCM=1.
  • The full rebuild completed successfully after about 3h17m. CMake found HIP/ROCm from the TheRock wheel install path and built for gfx942.
  • The only notable local warnings were expected for this container environment: no local ROCm GPU for amdgpu-arch detection and a non-fatal kineto not found CMake warning.

https://github.com/ROCm/pytorch/actions/runs/26055178200
Parity report
cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang

@pytorch-bot

pytorch-bot Bot commented Apr 7, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 3 New Failures, 5 Unrelated Failures, 10 Unclassified Failures

As of commit ca2b04a with merge base 59ded35 (image):

NEW FAILURES - The following jobs have failed:

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@pytorch-bot pytorch-bot Bot added module: rocm AMD GPU support for Pytorch topic: not user facing topic category labels Apr 7, 2026
@jithunnair-amd jithunnair-amd added the ciflow/rocm-nightly Trigger "default" config CI on a nightly build of ROCm from theRock on MI300 label Apr 7, 2026
@pytorch-bot pytorch-bot Bot removed the ciflow/rocm-nightly Trigger "default" config CI on a nightly build of ROCm from theRock on MI300 label Apr 8, 2026
@jithunnair-amd jithunnair-amd added ciflow/rocm-nightly Trigger "default" config CI on a nightly build of ROCm from theRock on MI300 ci-no-td Do not run TD on this PR keep-going Don't stop on first failure, keep running tests until the end labels Apr 8, 2026
@pytorch-bot

pytorch-bot Bot commented Apr 8, 2026

Copy link
Copy Markdown

To add the ciflow label ciflow/rocm-nightly please first approve the workflows that are awaiting approval (scroll to the bottom of this page).

This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows.

@pytorch-bot pytorch-bot Bot removed the ciflow/rocm-nightly Trigger "default" config CI on a nightly build of ROCm from theRock on MI300 label Apr 8, 2026
@jithunnair-amd jithunnair-amd added the ciflow/rocm-nightly Trigger "default" config CI on a nightly build of ROCm from theRock on MI300 label Apr 8, 2026
@ethanwee1

Copy link
Copy Markdown
Contributor 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 experiment/rocm-nightly-wheels onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout experiment/rocm-nightly-wheels && git pull --rebase)

@pytorchmergebot
pytorchmergebot force-pushed the experiment/rocm-nightly-wheels branch from f446c96 to 75df5c0 Compare April 22, 2026 14:11
@pytorch-bot pytorch-bot Bot added the ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 label Apr 22, 2026
@pytorch-bot

pytorch-bot Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@pytorch-bot pytorch-bot Bot added the no-runner-experiments Bypass Meta/LF runner determinator label May 14, 2026
@jithunnair-amd jithunnair-amd added the ciflow/trunk Trigger trunk jobs on your pull request label May 15, 2026
Comment thread .ci/docker/common/install_rocm.sh Resolved
Comment thread .ci/docker/common/install_rocm.sh Resolved

@jithunnair-amd jithunnair-amd 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.

@ethanwee1 Approving conditional on running builds and tests successfully in CI.

@ethanwee1

Copy link
Copy Markdown
Contributor 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

Install the full multi-arch TheRock ROCm wheel set for rocm-nightly so the image is no longer tied to a single GPU family index.
Set the rocm-nightly Docker PYTORCH_ROCM_ARCH list to match TheRock multi-arch device support so the image is built against the same targets installed by device-all.
Restore the rocm-nightly Docker build to gfx942 only after the expanded TheRock multi-arch PYTORCH_ROCM_ARCH list caused the source build to exceed the job timeout.
Remove stale /opt/rocm image defaults and redundant TheRock wheel env exports so rocm-nightly discovers ROCm through the generated wheel environment.
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Successfully rebased experiment/rocm-nightly-wheels onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout experiment/rocm-nightly-wheels && git pull --rebase)

@pytorchmergebot
pytorchmergebot force-pushed the experiment/rocm-nightly-wheels branch from f371916 to d5b08b3 Compare June 24, 2026 18:21
Temporarily pin the TheRock ROCm nightly wheel install to the June 12 multi-arch index while keeping gfx942 and gfx950 builds enabled.
Source the ROCm environment and pass CMAKE_PREFIX_PATH so rocm-origami can find HIP when building in the nightly Docker image.
@huydhn huydhn removed the no-runner-experiments Bypass Meta/LF runner determinator label Jun 25, 2026
jithunnair-amd and others added 3 commits June 26, 2026 11:01
Use the rocm-preview CI tag and Docker image name while keeping the underlying ROCm nightly wheel installation behavior unchanged.
Route the rocm-preview Docker image through ROCM_VERSION=preview so TheRock wheel handling no longer depends on the nightly version tag.
@jithunnair-amd jithunnair-amd added the ciflow/rocm-preview Trigger unit tests CI on a preview build of ROCm from theRock on MI300 label Jun 26, 2026
@pytorch-bot

pytorch-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

Unknown label ciflow/rocm-preview.
Currently recognized labels are

  • ciflow/b200
  • ciflow/b200-distributed
  • ciflow/b200-symm-mem
  • ciflow/binaries
  • ciflow/binaries_libtorch
  • ciflow/binaries_wheel
  • ciflow/docker
  • ciflow/dtensor
  • ciflow/dynamo
  • ciflow/h100
  • ciflow/h100-cutlass-backend
  • ciflow/h100-distributed
  • ciflow/h100-symm-mem
  • ciflow/inductor
  • ciflow/inductor-cu126
  • ciflow/inductor-micro-benchmark
  • ciflow/inductor-micro-benchmark-cpu-x86
  • ciflow/inductor-pallas
  • ciflow/inductor-perf-compare
  • ciflow/inductor-perf-test-nightly-rocm-mi300
  • ciflow/inductor-perf-test-nightly-rocm-mi350
  • ciflow/inductor-perf-test-nightly-x86-zen
  • ciflow/inductor-perf-test-nightly-xpu
  • ciflow/inductor-periodic
  • ciflow/inductor-rocm-mi200
  • ciflow/inductor-rocm-mi300
  • ciflow/mps
  • ciflow/nightly
  • ciflow/op-benchmark
  • ciflow/periodic
  • ciflow/periodic-rocm-mi200
  • ciflow/periodic-rocm-mi300
  • ciflow/pull
  • ciflow/riscv64
  • ciflow/rocm-mi200
  • ciflow/rocm-mi300
  • ciflow/rocm-navi31
  • ciflow/rocm-nightly
  • ciflow/s390
  • ciflow/slow
  • ciflow/slow-rocm-mi200
  • ciflow/torchtitan
  • ciflow/triton_binaries
  • ciflow/trunk
  • ciflow/tsan
  • ciflow/unstable
  • ciflow/vllm
  • ciflow/win-arm64
  • ciflow/xpu

Allow the rocm-preview workflow to be triggered by the existing ciflow/rocm-nightly label until the new preview label config is available on main.
Resolve the rocm-preview workflow rename conflict by keeping preview job names while preserving the existing rocm-nightly trigger and current main workflow inputs.
@jithunnair-amd

Copy link
Copy Markdown
Collaborator

Replaced by #188429

pytorchmergebot pushed a commit that referenced this pull request Aug 7, 2026
…14 (#188429)

Replacement for #179639 to retrigger CI from a fresh branch with the same ROCm preview changes.

Switch the ROCm preview Docker image from ROCm tarball installs to the multi-arch TheRock wheel index.

This keeps the source build targeted to `gfx942` and `gfx950` while installing ROCm from `https://rocm.nightlies.amd.com/whl-multi-arch/` with the `device-all` extra, so the image gets the complete multi-arch ROCm wheel set without compiling PyTorch for every TheRock target.

The TheRock wheel install is temporarily pinned to `7.14.0a20260712` while the rolling wheel index is unstable.

ROCm environment exports were audited and trimmed for the TheRock wheel install path. The reduced `/etc/rocm_env.sh` keeps only the paths needed for PyTorch to discover and link against the wheel-provided ROCm SDK.

Removed from the TheRock `/etc/rocm_env.sh` exports:
- `ROCM_SOURCE_DIR`
- `ROCM_BIN`
- `ROCM_CMAKE`
- `CMAKE_PREFIX_PATH`
- `HIP_DEVICE_LIB_PATH`
- `ROCM_DEVICE_LIB_PATH`
- `MAGMA_HOME`

Also removed stale image-level `/opt/rocm` defaults from `ubuntu-rocm/Dockerfile` so `rocm-preview` does not inherit tarball-era values after switching to wheels:
- `ROCM_PATH`
- `ROCM_HOME`
- `ROCM_SOURCE_DIR`
- `ROCM_BIN`
- `ROCM_CMAKE`
- `ROCM_DEVICE_LIB_PATH`
- `HIP_DEVICE_LIB_PATH`
- `MAGMA_HOME`
- `/opt/rocm` additions to `PATH`
- `/opt/rocm/lib` additions to `LD_LIBRARY_PATH`

Validation:
- Rebuilt the ROCm Docker image locally through the TheRock wheel install and `rocm-origami==0.0.2` install path.
- Confirmed `rocm-origami` builds and installs successfully when sourcing `/etc/rocm_env.sh` and passing `CMAKE_PREFIX_PATH=${ROCM_PATH}` to the pip build environment.
- Previously ran a full PyTorch ROCm source build with the TheRock wheel environment; CMake found HIP/ROCm from the wheel install path.
- trunk.yml run succeeded: https://github.com/pytorch/pytorch/actions/runs/31154362487/job/92960121104 `ROCM_VERSION=7.14`
- rocm-preview.yml run succeeded: https://github.com/pytorch/pytorch/actions/runs/31154364177/job/92810055863 `ROCM_VERSION=7.15.0a20260712`

Pull Request resolved: #188429
Approved by: https://github.com/ScottTodd, https://github.com/jeffdaily

Co-authored-by: Jithun Nair <[email protected]>
Co-authored-by: Cursor <[email protected]>
ankitbhrdwj pushed a commit to ankitbhrdwj/pytorch that referenced this pull request Aug 12, 2026
…14 (pytorch#188429)

Replacement for pytorch#179639 to retrigger CI from a fresh branch with the same ROCm preview changes.

Switch the ROCm preview Docker image from ROCm tarball installs to the multi-arch TheRock wheel index.

This keeps the source build targeted to `gfx942` and `gfx950` while installing ROCm from `https://rocm.nightlies.amd.com/whl-multi-arch/` with the `device-all` extra, so the image gets the complete multi-arch ROCm wheel set without compiling PyTorch for every TheRock target.

The TheRock wheel install is temporarily pinned to `7.14.0a20260712` while the rolling wheel index is unstable.

ROCm environment exports were audited and trimmed for the TheRock wheel install path. The reduced `/etc/rocm_env.sh` keeps only the paths needed for PyTorch to discover and link against the wheel-provided ROCm SDK.

Removed from the TheRock `/etc/rocm_env.sh` exports:
- `ROCM_SOURCE_DIR`
- `ROCM_BIN`
- `ROCM_CMAKE`
- `CMAKE_PREFIX_PATH`
- `HIP_DEVICE_LIB_PATH`
- `ROCM_DEVICE_LIB_PATH`
- `MAGMA_HOME`

Also removed stale image-level `/opt/rocm` defaults from `ubuntu-rocm/Dockerfile` so `rocm-preview` does not inherit tarball-era values after switching to wheels:
- `ROCM_PATH`
- `ROCM_HOME`
- `ROCM_SOURCE_DIR`
- `ROCM_BIN`
- `ROCM_CMAKE`
- `ROCM_DEVICE_LIB_PATH`
- `HIP_DEVICE_LIB_PATH`
- `MAGMA_HOME`
- `/opt/rocm` additions to `PATH`
- `/opt/rocm/lib` additions to `LD_LIBRARY_PATH`

Validation:
- Rebuilt the ROCm Docker image locally through the TheRock wheel install and `rocm-origami==0.0.2` install path.
- Confirmed `rocm-origami` builds and installs successfully when sourcing `/etc/rocm_env.sh` and passing `CMAKE_PREFIX_PATH=${ROCM_PATH}` to the pip build environment.
- Previously ran a full PyTorch ROCm source build with the TheRock wheel environment; CMake found HIP/ROCm from the wheel install path.
- trunk.yml run succeeded: https://github.com/pytorch/pytorch/actions/runs/31154362487/job/92960121104 `ROCM_VERSION=7.14`
- rocm-preview.yml run succeeded: https://github.com/pytorch/pytorch/actions/runs/31154364177/job/92810055863 `ROCM_VERSION=7.15.0a20260712`

Pull Request resolved: pytorch#188429
Approved by: https://github.com/ScottTodd, https://github.com/jeffdaily

Co-authored-by: Jithun Nair <[email protected]>
Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/docker ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 ciflow/rocm-nightly Trigger "default" config CI on a nightly build of ROCm from theRock on MI300 ciflow/rocm-preview Trigger unit tests CI on a preview build of ROCm from theRock on MI300 ciflow/trunk Trigger trunk jobs on your pull request keep-going Don't stop on first failure, keep running tests until the end module: rocm AMD GPU support for Pytorch open source topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants