[ROCm] Move the ROCm CI to ROCm 7.14 and 10.0 #6399
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 579 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.381
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6399"
general
weight: 0.35
jithunnair-amd
Summary
Move the ROCm CI to ROCm 7.14 and 10.0, the versions for which FBGEMM ROCm wheels are published (
fbgemm-gpufor both,fbgemm-gpu-genaifor 10.0 only), and restructure it like the CUDA CI so that a ROCm version change is a single edit. This replaces the remaining changes in pytorch/FBGEMM#6119.Why: the in-repo ROCm CI built against 7.0/7.1 and tested on 7.1, so none of the published ROCm versions was tested on GPU. ROCm 7.14 and 10.0 are not available through
repo.radeon.com(apt) or as-completeimages, but are published as Python packages on the same PyTorch wheel indexes as torch. ROCm is also no longer guaranteed to be under/opt/rocm.Changes
1. Same structure as the CUDA CI. New callable
_fbgemm_gpu_rocm_build.ymland_fbgemm_gpu_rocm_test.yml, used byfbgemm_gpu_ci_rocm.yml,fbgemm_gpu_benchmark_rocm.ymland the ROCm job offbgemm_gpu_pip.yml. The ROCm versions, and the container image for each, are declared once inROCM_CONTAINER_IMAGESingenerate_ci_matrix.py.2. ROCm installed from the PyTorch wheel index. Jobs run in plain
ubuntu:22.04. Installing torch pulls in its ROCm runtime, andinstall_rocm_pipthen addsrocm[devel], whoserocm-sdk-develis pinned to the installedrocmversion, so headers and CMake configs always match torch's runtime. The devel tree is exported asROCM_PATH.3. ROCm located without hardcoding
/opt/rocm, in the CI scripts (rocm_install_dir) and inHip.cmake:ROCM_PATH, then/opt/rocm, thenhipconfig --rocmpath, otherwise an error.hipconfigcomes last because torch's ROCm wheels install their ownhipconfig, for a runtime-only ROCm. The build also setsHIP_ROOT_DIRandROCM_PATHto the located ROCm, so CMake uses the same one.4.
HSA_XNACK=1is always set for ROCm tests. The old ROCm >= 5.7 check read/opt/rocm/.info/version-dev, which current ROCm installations lack, and then silently skipped the variable.5. ROCm 7.14 and 10.0: builds on both, GPU jobs (tests, benchmark, PIP installation test) on 10.0 only, the same policy as before (build on 7.0 and 7.1, test on 7.1).
Other behaviour changes
pytorch-triton-rocmwould have been installed alongside torch 10.0'striton-rocm.merge_pooled_embeddings_test.pyare skipped on ROCm (test_merge,test_all_to_one_device_spanning_multiple_expandable_segments). On the MI350X VF CI runners with ROCm 10.0, data copied from other GPUs arrives as zeros. With the same inputs, both pass on those runners with ROCm 7.1 and on bare-metal MI350X with ROCm 10.0.pyre_extensions). Its ROCm job is still expected to fail until the published ROCm wheels include gfx950 code (they are gfx942 only); it is kept as the only check that the published wheels run on the CI hardware.nightly, and the manual-trigger input ispytorch-channel-version(the unusedpublish_to_pypiinput is removed).Not changed
build_wheels_*), which get their ROCm versions and images from test-infra. They do use the build script changed here:HIP_ROOT_DIRnow comes from theirROCM_PATHinstead of being/opt/rocm.ci/integration/,fbgemm_gpu_integration.bash), which still install ROCm through apt and so only work up to ROCm 7.2.Test Plan
ciflow/binarieson this PR): all ROCm wheel builds pass. The CUDA GenAI failures there come from the runner pool, as described in the comments.- the ROCm lookup in every case (
ROCM_PATHset, empty or unset, torch'shipconfigonPATH, no/opt/rocm, nothing available), in both the scripts and CMake;- the CUDA and CPU CI matrices are unchanged byte-for-byte;
- the full default-target test suite on MI350X with ROCm 10.0: 631 passed, 0 failed (before the switch to pip-installed ROCm);
- the two skipped tests pass on bare-metal MI350X with all 8 GPUs and CI's exact inputs.
🤖 Generated with Claude Code