← Back to Pull requests

[XLA:GPU] Expose ROCm's libhipcxx from include/hipccl as its own include root #52725

Closed
unknown closed this pull request without merging on Nov 11, 2026 16:22 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 19:11 UTC
Author

Motivation
As part of the move to the CCCL 3.0-3.3 API, AMD is introducing hipCCL, a
unified package for rocPRIM, hipCUB and rocThrust that mirrors the role
NVIDIA's CCCL plays for CUB, Thrust and libcu++. hipCCL installs libhipcxx under <rocm>/include/hipccl, which Bazel did not expose, so hipCUB could fail with 'libhipcxx could not be found'.

📝 Summary of Changes
This change works with both the legacy and the new (upcoming) hipccl layouts. It adds :rocm_libhipcxx_includes, which strips include/hipccl so the headers
are reachable by hipCUB, and depends on it from :rocm_headers_includes.

The glob covers the whole directory rather than naming subdirectories, because
libhipcxx headers cross-reference each other across cuda/, hip/, nv/ and
amd/. allow_empty leaves ROCm installs without include/hipccl unchanged.

🎯 Justification
This change is important to avoid build failures with ROCm's planned migration to hipCCL 3.x.

🚀 Kind of Contribution
Please remove what does not apply: 🐛 Bug Fix

📊 Benchmark (for Performance Improvements)
N/A

🧪 Unit Tests:
Tested by building XLA in two ROCm containers:

  • libhipcxx alone under include/hipccl, with hipCUB/rocPRIM/rocThrust in

  • include/
  • the hipCCL layout, where hipCUB/rocPRIM/rocThrust are under include/hipccl too and include/{hipcub,rocprim,rocthrust} are symlinks into it
  • No unit tests were added.

    🧪 Execution Tests:
    N/A

    Reviewed and approved for AMD by the ROCm XLA team in ROCm/xla#1419.

    Diff: 183 lines (+137 / -46) across 2 files Reviewer: amd-mcieslak Review duration: 1270m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 183 lines diff across 2 files
    0.36
    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.312
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #52725"
    general weight: 0.35
    Reviewers
    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: 35.6% (MEDIUM) · Higher = larger blast radius
    35.6%
    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: 14.1% · Safe to merge
    14.1%
    Repository