← Back to Pull requests

Veergopu/upgrade ci rock 714 #690

Closed
unknown closed this pull request without merging on Aug 10, 2026 21:26 UTC
View on GitHub
unknown unknown commented on Aug 04, 2026 22:30 UTC
Author

Description

Upgrade the TransformerEngine (ROCm fork) CI stack to ROCk 7.14 using the
new multi-arch TheRock wheelhouse. A single CI deps image now serves both
GPUs (gfx950;gfx942), with ROCm provided by the pip rocm-sdk
wheels (no /opt/rocm install). The version bump moves the stack to
torch 2.12 / triton 3.7.1 / jax 0.11 / FA 2.8.3, ROCm 7.14, which surfaced several
failures; this PR contains the upgrade plus the triage fixes and interim
workarounds needed to get the suite green.

Most of the newly-exposed failures are upstream torch 2.12 + ROCm regressions
(not TE bugs), each root-caused and reproduced with a TE-free reproducer; where
no upstream fix has landed yet, a narrowly-scoped, ROCm-gated interim workaround
is applied so CI stays green.

Fixes # (issue)

Type of change

  • Documentation change (change only to the documentation, either a fix or a new content)

  • Bug fix (non-breaking change which fixes an issue)

  • New feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

  • Infra/Build change

  • Code refactoring
  • Changes

    CI / build infrastructure
    - Rebuild the CI deps image from the TheRock multi-arch wheelhouse (ROCm 7.14,
    gfx950;gfx942); ROCm now comes from rocm-sdk wheels instead of /opt/rocm.
    - Resolve ROCm via rocm-sdk path --root in the core C++ suite (ci/_utils.sh,
    transformer_engine/common/CMakeLists.txt, cuda_runtime.cpp) so it builds
    and runs on an image with no /opt/rocm.
    - Update the default CI docker image (ci/ci_config.json).
    - benchmark_attention_rocm.py: use the rocm-sdk-core rocprofv3 to avoid a
    duplicate librocprofiler-sdk.so.1 (core vs devel) SIGABRT.
    - test_sanity_import.py: adjust for the wheel-based ROCm layout
    (test_lazy_init now passes).

    Test fixes and interim workarounds
    - test_torch_compile::test_autocast_nested_custom — cherry-pick upstream
    PR #3130 ([torch.compile] ...). Fixes a latent TE 2.17 bug (recipe reuse
    in set_meta_tensor + a missing get_quantizer_roles() override) that only
    runs under torch ≥ 2.11. https://github.com/NVIDIA/TransformerEngine/commit/43093f16d6dc
    - test_gpt_cuda_graph — interim WAR: preferred_blas_library("cublas"),
    IS_HIP_EXTENSION-gated. torch 2.12 creates a per-(device,stream) hipBLASLt
    handle during graph capture → HIP 900. Upstream (PyTorch) fix pending.
    - triton_kernels/test_norms.py — interim WAR: new ROCm-gated conftest.py
    that os._exit()s pytest's real status on pytest_sessionfinish. torch 2.12's
    HIP teardown ordering trips a latent ROCr hsa_shut_down use-after-free at
    process exit (segfault after all tests pass). Bypasses the buggy atexit path;
    JUnit report and real exit status preserved.

    Checklist:

  • I have read and followed the contributing guidelines

  • The functionality is complete

  • I have commented my code, particularly in hard-to-understand areas

  • I have made corresponding changes to the documentation

  • My changes generate no new warnings

  • I have added tests that prove my fix is effective or that my feature works

  • New and existing unit tests pass locally with my changes
  • Diff: 437 lines (+327 / -110) across 5 files Reviewer: VeeraRajasekhar Review duration: 8576m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 437 lines diff across 5 files
    0.45
    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.364
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #690"
    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: 45.2% (MEDIUM) · Higher = larger blast radius
    45.2%
    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: 17.9% · Safe to merge
    17.9%