Skip to content

[ROCm][CI] Add rocm7.14 nightly manywheel build via TheRock wheels + RPATH - #190276

Closed
ethanwee1 wants to merge 1 commit into
pytorch:mainfrom
ethanwee1:rocm-nightly-wheels-7.14
Closed

ethanwee1 wants to merge 1 commit into
pytorch:mainfrom
ethanwee1:rocm-nightly-wheels-7.14

Conversation

@ethanwee1

@ethanwee1 ethanwee1 commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the ROCm 7.14 nightly binary-wheel build, installing ROCm from the multi-arch TheRock wheel index (https://repo.amd.com/rocm/whl-multi-arch/). Matrix: ROCM_ARCHES = ["7.2", "7.14"].

Re-combined into one PR (docker image + wheels) now that #190749 (content-addressed builder images) and #190985 (ROCm manywheel-build consumes the ECR image via get-docker-tag) let a single PR build its own rocm7.14 .ci/docker image (pushed to ECR on ciflow/docker) and build/consume the wheel in the same ciflow/binaries run.

Changes

  • .ci/docker/common/install_rocm.sh: install_almalinux() (mirrors install_ubuntu()) installs ROCm from the wheel index (rocm[libraries,devel,device-all]==${ROCM_VERSION}.*), discovers the root via rocm-sdk path, writes /etc/rocm_env.sh (build-time env; no /opt/rocm symlink); dispatched on ID=almalinux.
  • .ci/docker/manywheel/Dockerfile_2_28: OS-package stage renamed to rocm_final_legacy; new wheel-based rocm_final stage. .ci/docker/manywheel/build.sh: folded rocm7.14 into the generic rocm* case (7.14 -> rocm_final + almalinux base via ROCM_VERSION; earlier -> rocm_final_legacy + rocm/dev-almalinux-8). build-manywheel-images.yml: add the rocm7.14 tag.
  • .ci/manywheel/repair_wheel.py: RPATH method. Instead of hand-maintaining ROCM_SO_FILES and bundling, add rocm_rpaths() ($ORIGIN/../../_rocm_sdk_core/lib + rocm_sysdeps/lib, mirroring cuda_rpaths()). For the TheRock wheel layout (ROCM_HOME under _rocm_sdk*) set RPATH and skip bundling; keep rocm_bundle/ROCM_SO_FILES only for the legacy OS layout (/opt/rocm, rocm7.2). This gets us out of maintaining a fragile list of ROCm libraries.
  • .github/scripts/generate_binary_build_matrix.py: ROCM_ARCHES=["7.2","7.14"] + regenerated workflow. .ci/manywheel/build_env_setup.py: discover_rocm_home().

Notes

Validation

Built manylinux2_28-builder:rocm7.14 locally: install_almalinux installs 7.14 from repo.amd.com; hipcc --version reports HIP 7.14.60850; $ROCM_HOME/lib has runtime .sos + rocm_sysdeps/lib. ruff/bash/py checks pass.

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @aditew01 @mcarilli @ptrblck @leslie-fang-intel @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @azahed98 @xmfan @aditvenk

@ethanwee1

Copy link
Copy Markdown
Contributor Author

cc @HereThereBeDragons @marbre @ScottTodd for review when this is ready (7.14 nightly manywheel / TheRock wheel install path).

@pytorch-bot

pytorch-bot Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 8 Pending, 9 Unrelated Failures, 7 Unclassified Failures

As of commit 442a157 with merge base 240f31a (image):

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:

  • linux-binary-manywheel / libtorch-rocm7_14-shared-with-deps-release-extract (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    Pod mt-l-x86iavx512-16-128-76kb7-runner-mwgvs-workflow: phase=Pending, conditions=[PodReadyToStartContainers=True, Initialized=True, Ready=False, ContainersReady=False, PodScheduled=True], waiting=[job: ErrImagePull] (51s/7200s)

  • windows-binary-wheel / wheel-py3_10-xpu-test (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    API rate limit exceeded

    AI verdict: AI verdict: infra issue

    The job failed due to GitHub API rate limiting ("API rate limit exceeded for user ID 133916390"), not due to any code change in the suspect commit. This is a CI infrastructure issue.

    Full reasoning on HUD →

  • windows-binary-wheel / wheel-py3_11-xpu-test (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    API rate limit exceeded

    AI verdict: AI verdict: infra issue

    The job failed because triton-xpu==3.8.0+git1e2d42a0 hasn't been published to the package index yet. The second failure event's log is just a GitHub API rate limit error. Neither failure is caused by the ROCm CI changes in this commit.

    Full reasoning on HUD →

  • windows-binary-wheel / wheel-py3_12-xpu-test (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    API rate limit exceeded

    AI verdict: AI verdict: infra issue

    The failure is caused by GitHub API rate limiting ("API rate limit exceeded for user ID 133916390"), not by any code change in the commit. This is a CI infrastructure issue.

    Full reasoning on HUD →

  • windows-binary-wheel / wheel-py3_13-xpu-test (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    API rate limit exceeded

    AI verdict: AI verdict: infra issue

    The job failed due to GitHub API rate limiting ("API rate limit exceeded for user ID 133916390"), not due to any code change in the commit. This is a CI infrastructure issue.

    Full reasoning on HUD →

  • windows-binary-wheel / wheel-py3_14-xpu-test (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    API rate limit exceeded

    AI verdict: AI verdict: infra issue

    The failure is caused by GitHub API rate limiting ("API rate limit exceeded for user ID 1617424"), not by any code change in the commit.

    Full reasoning on HUD →

  • windows-binary-wheel / wheel-py3_14t-xpu-test (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    API rate limit exceeded

    AI verdict: AI verdict: infra issue

    The failure is caused by GitHub API rate limiting ("API rate limit exceeded for user ID 133916390"), not by any code change. The commit only modifies ROCm Linux manywheel CI infrastructure and has no connection to Windows XPU testing.

    Full reasoning on HUD →

FLAKY - The following jobs failed but were 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 module: rocm AMD GPU support for Pytorch release notes: releng release notes category labels Jul 17, 2026
@pytorch-bot

pytorch-bot Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

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

@jithunnair-amd jithunnair-amd added ciflow/binaries_wheel Trigger binary build and upload jobs for wheel on the PR ciflow/trunk Trigger trunk jobs on your pull request keep-going Don't stop on first failure, keep running tests until the end labels Jul 17, 2026
@ethanwee1
ethanwee1 force-pushed the rocm-nightly-wheels-7.14 branch 2 times, most recently from 484df6d to e014706 Compare July 20, 2026 18:55
@ethanwee1

Copy link
Copy Markdown
Contributor Author

@jithunnair-amd requesting your review on this one (keeping it in draft for now). See the updated description for details and findings.

@ethanwee1
ethanwee1 force-pushed the rocm-nightly-wheels-7.14 branch from 5d7a817 to 07da79e Compare July 22, 2026 16:13
@ethanwee1 ethanwee1 changed the title [ROCm][CI] Switch nightly manywheel build from rocm7.2 to rocm7.14 wheels [ROCm][CI] Add rocm7.14 nightly manywheel build (TheRock wheels) Jul 22, 2026
Comment thread .ci/docker/common/install_rocm.sh Resolved
Comment thread .ci/docker/common/install_rocm.sh Resolved
Comment thread .ci/docker/manywheel/build.sh Resolved
@ethanwee1
ethanwee1 force-pushed the rocm-nightly-wheels-7.14 branch from 07da79e to 7f06be6 Compare July 23, 2026 15:01
Comment thread .ci/docker/manywheel/build.sh Resolved
@ethanwee1 ethanwee1 changed the title [ROCm][CI] Add rocm7.14 nightly manywheel build (TheRock wheels) [ROCm][CI] Switch nightly manywheel matrix from rocm7.2 to rocm7.14 Jul 23, 2026
ethanwee1 added a commit to ethanwee1/pytorch that referenced this pull request Jul 23, 2026
Add the ROCm 7.14 manywheel builder image, installing ROCm from the multi-arch
TheRock wheel index (https://repo.amd.com/rocm/whl-multi-arch/) instead of the
rocm/dev-almalinux-8 OS packages. Split from the wheel-matrix PR (pytorch#190276) so this
image lands + publishes first; the matrix PR then consumes it.

- install_rocm.sh: add install_almalinux() (mirrors install_ubuntu()) that installs
  ROCm from the wheel index (rocm[libraries,devel,device-all]==${ROCM_VERSION}.*),
  discovers the root via `rocm-sdk path`, and writes /etc/rocm_env.sh pointing at the
  real _rocm_sdk_* root (no /opt/rocm symlink); dispatched on ID=almalinux.
- Dockerfile_2_28: rename the OS-package rocm stage to rocm_final_legacy; the new
  wheel-based stage is rocm_final. Uses ROCM_VERSION (no separate THEROCK_VERSION).
- manywheel/build.sh: fold the rocm7.14 handling into the generic rocm* case
  (common gfx arch list + per-path additions); 7.14 -> rocm_final + almalinux base,
  earlier versions -> rocm_final_legacy + rocm/dev-almalinux-8. Version via ROCM_VERSION.
- build-manywheel-images.yml: add the rocm7.14 builder image tag.

With ciflow/docker this builds + pushes the content-addressed image to ECR for PR
testing; on merge to main it publishes pytorch/manylinux2_28-builder:rocm7.14 to
Docker Hub. Addresses review feedback (dead-code removal, THEROCK_VERSION->ROCM_VERSION,
folded case, stage rename).
pytorchmergebot pushed a commit to ethanwee1/pytorch that referenced this pull request Jul 24, 2026
Add the ROCm 7.14 manywheel builder image, installing ROCm from the multi-arch
TheRock wheel index (https://repo.amd.com/rocm/whl-multi-arch/) instead of the
rocm/dev-almalinux-8 OS packages. Split from the wheel-matrix PR (pytorch#190276) so this
image lands + publishes first; the matrix PR then consumes it.

- install_rocm.sh: add install_almalinux() (mirrors install_ubuntu()) that installs
  ROCm from the wheel index (rocm[libraries,devel,device-all]==${ROCM_VERSION}.*),
  discovers the root via `rocm-sdk path`, and writes /etc/rocm_env.sh pointing at the
  real _rocm_sdk_* root (no /opt/rocm symlink); dispatched on ID=almalinux.
- Dockerfile_2_28: rename the OS-package rocm stage to rocm_final_legacy; the new
  wheel-based stage is rocm_final. Uses ROCM_VERSION (no separate THEROCK_VERSION).
- manywheel/build.sh: fold the rocm7.14 handling into the generic rocm* case
  (common gfx arch list + per-path additions); 7.14 -> rocm_final + almalinux base,
  earlier versions -> rocm_final_legacy + rocm/dev-almalinux-8. Version via ROCM_VERSION.
- build-manywheel-images.yml: add the rocm7.14 builder image tag.

With ciflow/docker this builds + pushes the content-addressed image to ECR for PR
testing; on merge to main it publishes pytorch/manylinux2_28-builder:rocm7.14 to
Docker Hub. Addresses review feedback (dead-code removal, THEROCK_VERSION->ROCM_VERSION,
folded case, stage rename).
@ethanwee1
ethanwee1 force-pushed the rocm-nightly-wheels-7.14 branch from 7f06be6 to 7abce2b Compare July 24, 2026 22:46
@ethanwee1 ethanwee1 changed the title [ROCm][CI] Switch nightly manywheel matrix from rocm7.2 to rocm7.14 [ROCm][CI] Add rocm7.14 nightly manywheel build via TheRock wheels + RPATH Jul 24, 2026
@jithunnair-amd jithunnair-amd added the ciflow/binaries Trigger all binary build and upload jobs on the PR label Jul 24, 2026
Comment thread .ci/docker/manywheel/Dockerfile_2_28 Resolved
@atalman

atalman commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

HI @ethanwee1 please rebase this PR to resolve the conflicts. Also please fix lint

@atalman

atalman commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

HI @ethanwee1 lets break this down to 2 PRs 1 that adds Docker containers, this can be landed asap and another PR that actually introduce binary builds

@atalman atalman removed the ciflow/binaries_wheel Trigger binary build and upload jobs for wheel on the PR label Aug 3, 2026
@jithunnair-amd

Copy link
Copy Markdown
Collaborator

@pytorchbot rebase

@ethanwee1
ethanwee1 force-pushed the rocm-nightly-wheels-7.14 branch from f4d3305 to 56b243d Compare August 3, 2026 21:17
@jithunnair-amd jithunnair-amd added the ciflow/binaries_wheel Trigger binary build and upload jobs for wheel on the PR label Aug 3, 2026
@atalman

atalman commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot rebase -b main

1 similar comment
@atalman

atalman commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot rebase -b main

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

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

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

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

@pytorchmergebot
pytorchmergebot force-pushed the rocm-nightly-wheels-7.14 branch from 56b243d to 1faa878 Compare August 4, 2026 14:52
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

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

…RPATH

Rebased onto latest main; regenerated generated-linux-binary-manywheel-nightly.yml
to match (fixes Lint / workflow-checks).

Co-authored-by: Jithun Nair <[email protected]>
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

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

@pytorchmergebot
pytorchmergebot force-pushed the rocm-nightly-wheels-7.14 branch from 1faa878 to 442a157 Compare August 4, 2026 15:07

@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

@jithunnair-amd

Copy link
Copy Markdown
Collaborator

@pytorchbot merge -f "Lint clean. ROCm 7.14 manywheel docker build job and binary build job succeeded. Binary test failures expected for ROCm 7.14 since they don't use ECR images yet, and dockerhub images do not exist. Remaining failures unrelated."

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/binaries_wheel Trigger binary build and upload jobs for wheel on the PR ciflow/binaries Trigger all binary build and upload jobs on the PR ciflow/docker ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 ciflow/trunk Trigger trunk jobs on your pull request keep-going Don't stop on first failure, keep running tests until the end Merged module: rocm AMD GPU support for Pytorch open source release notes: releng release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants