← Back to Pull requests

[ROCm] Move the ROCm CI to ROCm 7.14 and 10.0 #6399

Closed
unknown closed this pull request without merging on Oct 19, 2026 23:47 UTC
View on GitHub
unknown unknown commented on Oct 01, 2026 11:43 UTC
Author

Summary

Move the ROCm CI to ROCm 7.14 and 10.0, the versions for which FBGEMM ROCm wheels are published (fbgemm-gpu for both, fbgemm-gpu-genai for 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 -complete images, 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.yml and _fbgemm_gpu_rocm_test.yml, used by fbgemm_gpu_ci_rocm.yml, fbgemm_gpu_benchmark_rocm.yml and the ROCm job of fbgemm_gpu_pip.yml. The ROCm versions, and the container image for each, are declared once in ROCM_CONTAINER_IMAGES in generate_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, and install_rocm_pip then adds rocm[devel], whose rocm-sdk-devel is pinned to the installed rocm version, so headers and CMake configs always match torch's runtime. The devel tree is exported as ROCM_PATH.
3. ROCm located without hardcoding /opt/rocm, in the CI scripts (rocm_install_dir) and in Hip.cmake: ROCM_PATH, then /opt/rocm, then hipconfig --rocmpath, otherwise an error. hipconfig comes last because torch's ROCm wheels install their own hipconfig, for a runtime-only ROCm. The build also sets HIP_ROOT_DIR and ROCM_PATH to the located ROCm, so CMake uses the same one.
4. HSA_XNACK=1 is 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

  • GPU jobs install only FBGEMM's pip requirements, as the CUDA jobs do, and use the Triton that torch depends on. The previously pinned pytorch-triton-rocm would have been installed alongside torch 10.0's triton-rocm.

  • Two multi-GPU tests in merge_pooled_embeddings_test.py are 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.

  • The PIP installation test now installs FBGEMM's pip requirements (its tests were failing to import 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.

  • As in the CUDA CI: the build's package channel follows the PyTorch channel, the scheduled PIP installation test checks out nightly, and the manual-trigger input is pytorch-channel-version (the unused publish_to_pypi input is removed).
  • Not changed

  • The release wheel workflows (build_wheels_*), which get their ROCm versions and images from test-infra. They do use the build script changed here: HIP_ROOT_DIR now comes from their ROCM_PATH instead of being /opt/rocm.

  • The developer setup scripts (ci/integration/, fbgemm_gpu_integration.bash), which still install ROCm through apt and so only work up to ROCm 7.2.
  • Test Plan

  • ROCm CI on this branch's final tree (pytorch/FBGEMM#6416): all 12 jobs pass (builds on 7.14 and 10.0 for default and genai with gcc and clang, GPU tests on 10.0), as does the ROCm benchmark.

  • Release builds (ciflow/binaries on this PR): all ROCm wheel builds pass. The CUDA GenAI failures there come from the runner pool, as described in the comments.

  • Locally, in containers:

  • - the ROCm lookup in every case (ROCM_PATH set, empty or unset, torch's hipconfig on PATH, 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

    Diff: 579 lines (+434 / -145) across 7 files Reviewer: jithunnair-amd Review duration: 26643m
    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
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 49.9% (MEDIUM) · Higher = larger blast radius
    49.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.7% · Safe to merge
    19.7%
    Repository