fix(hipccl): Fix issues from TheRock review #13336
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
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.352
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #13336"
general
weight: 0.35
stanleytsang-amd
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 checksIS_DIRECTORYafter 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 linksbenchmark::benchmarkor 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 nowbenchmark_rocprim_<name>(57),benchmark_hipcub_<name>(35) and the existingbenchmark_thrust_<name>(40), all distinct. Set throughOUTPUT_NAME, since rocPRIM's target name doubles as the autotune lookup key. The benchmarks stay inbin/(an earlier revision of this PR installed them tobin/<project>; reverted per review feedback).Impact on TheRock
benchmark_<name>->benchmark_hipcub_<name>). The runner's default filter^benchmarkstill matches, but anything launching them by old name, or comparing<exe>_<gpu>.jsonresults against history, must follow.bin/benchmark_*now also matches the rocPRIM benchmarks (57 files). Whether to ship them is TheRock's decision.if(WIN32)override that disables the legacy symlinks inmath-libs/CMakeLists.txtcan 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
Not included
TheRock-side items (coverage replacement mapping, rocRAND in
hipCCLdeps), a legacy-include smoke test, and a deprecation date for the legacy include paths.Submission Checklist