← Back to Pull requests

fix(hipccl): Fix issues from TheRock review #13336

Closed
unknown closed this pull request without merging on Oct 13, 2026 15:25 UTC
View on GitHub
unknown unknown commented on Oct 08, 2026 18:07 UTC
Author

Motivation

Fixes the issues from the TheRock #8762 review of the unified hipCCL build that are on our side. Four independent commits, so they can be reviewed or split separately.

Technical Details

1. rocPRIM version 5.0.0 -> 4.8.0 (hipccl3). Upstream reverted to 4.8.0 (#12614), but that revert never changed this line in hipccl3. With SameMajorVersion, find_package(rocprim 4.8 CONFIG) stopped matching.
2. Legacy header links on Windows (hipccl2 + hipccl3). When the symlink privilege is available, file(CREATE_LINK) reports success but makes a broken file-type link (forward-slash relative target, not a directory link), which fails with WinError 123. Windows now copies the headers instead. On other platforms the helper checks IS_DIRECTORY after creating the link and falls back to a copy. Docs note added.
3. rocThrust (hipccl3): remove the unused Google Benchmark fetch. The benchmarks use shared/primbench. Nothing links benchmark::benchmark or includes its headers. hipccl2 never had the fetch.
4. Unique benchmark executable names (hipccl2 + hipccl3). hipCUB and rocPRIM share 26 benchmark source names and both installed unprefixed executables into the same bin/, so one silently overwrote the other. Installed names are now benchmark_rocprim_<name> (57), benchmark_hipcub_<name> (35) and the existing benchmark_thrust_<name> (40), all distinct. Set through OUTPUT_NAME, since rocPRIM's target name doubles as the autotune lookup key. The benchmarks stay in bin/ (an earlier revision of this PR installed them to bin/<project>; reverted per review feedback).

Impact on TheRock

  • The 35 hipCUB benchmark executables change name (benchmark_<name> -> benchmark_hipcub_<name>). The runner's default filter ^benchmark still matches, but anything launching them by old name, or comparing <exe>_<gpu>.json results against history, must follow.

  • bin/benchmark_* now also matches the rocPRIM benchmarks (57 files). Whether to ship them is TheRock's decision.

  • The if(WIN32) override that disables the legacy symlinks in math-libs/CMakeLists.txt can be dropped once this lands.
  • Test Plan

    TheRock CI should be rerun with these changes to verify nothing is broken. I did test #2 locally on my laptop.

    Test Result

  • Item 2: the bug reproduced on Windows (broken links, WinError 123). With the fix, Windows installs are real directories, and Linux still creates working symlinks.
  • Not included

    TheRock-side items (coverage replacement mapping, rocRAND in hipCCL deps), a legacy-include smoke test, and a deprecation date for the legacy include paths.

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/GOVERNANCE.md#pull-requests.
  • Diff: 357 lines (+267 / -90) across 4 files Reviewer: stanleytsang-amd Review duration: 7038m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 357 lines diff across 4 files
    0.43
    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.352
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #13336"
    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: 42.6% (MEDIUM) · Higher = larger blast radius
    42.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: 16.8% · Safe to merge
    16.8%