Repository navigation
Conversation
|
cc @HereThereBeDragons @marbre @ScottTodd for review when this is ready (7.14 nightly manywheel / TheRock wheel install path). |
🔗 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 FailuresAs of commit 442a157 with merge base 240f31a ( 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:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
|
484df6d to
e014706
Compare
|
@jithunnair-amd requesting your review on this one (keeping it in draft for now). See the updated description for details and findings. |
5d7a817 to
07da79e
Compare
07da79e to
7f06be6
Compare
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).
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).
7f06be6 to
7abce2b
Compare
|
HI @ethanwee1 please rebase this PR to resolve the conflicts. Also please fix lint |
|
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 |
|
@pytorchbot rebase |
f4d3305 to
56b243d
Compare
|
@pytorchbot rebase -b main |
1 similar comment
|
@pytorchbot rebase -b main |
|
@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here |
|
Successfully rebased |
56b243d to
1faa878
Compare
|
@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]>
|
Successfully rebased |
1faa878 to
442a157
Compare
|
@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." |
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 |
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-buildconsumes the ECR image viaget-docker-tag) let a single PR build its ownrocm7.14.ci/dockerimage (pushed to ECR onciflow/docker) and build/consume the wheel in the sameciflow/binariesrun.Changes
.ci/docker/common/install_rocm.sh:install_almalinux()(mirrorsinstall_ubuntu()) installs ROCm from the wheel index (rocm[libraries,devel,device-all]==${ROCM_VERSION}.*), discovers the root viarocm-sdk path, writes/etc/rocm_env.sh(build-time env; no/opt/rocmsymlink); dispatched onID=almalinux..ci/docker/manywheel/Dockerfile_2_28: OS-package stage renamed torocm_final_legacy; new wheel-basedrocm_finalstage..ci/docker/manywheel/build.sh: folded rocm7.14 into the genericrocm*case (7.14 ->rocm_final+ almalinux base viaROCM_VERSION; earlier ->rocm_final_legacy+rocm/dev-almalinux-8).build-manywheel-images.yml: add therocm7.14tag..ci/manywheel/repair_wheel.py: RPATH method. Instead of hand-maintainingROCM_SO_FILESand bundling, addrocm_rpaths()($ORIGIN/../../_rocm_sdk_core/lib+rocm_sysdeps/lib, mirroringcuda_rpaths()). For the TheRock wheel layout (ROCM_HOMEunder_rocm_sdk*) set RPATH and skip bundling; keeprocm_bundle/ROCM_SO_FILESonly 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
/opt/rocm) keeps the self-contained bundle. The RPATH resolves the ROCm libs from therocmpip package (_rocm_sdk_core, sibling of torch), the same way CUDA/XPU resolve from their pip packages, combined with_preload_rocm_deps([ROCm] Preload TheRock ROCm deps so wheels are self-contained (_preload_rocm_deps) #188454)._rocm_sdk_corebeing co-installed with torch in the CI build/test image; declaringrocmas an end-userPYTORCH_EXTRA_INSTALL_REQUIREMENTSis a follow-up.Validation
Built
manylinux2_28-builder:rocm7.14locally:install_almalinuxinstalls 7.14 fromrepo.amd.com;hipcc --versionreports HIP 7.14.60850;$ROCM_HOME/libhas 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