[hipCCL] export libhipcxx dependency when linking libhipcxx::libhipcxx #14064
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 337 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.348
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #14064"
general
weight: 0.35
Naraenda
Motivation
When rocThrust finds libhipcxx at configure time (
ROCTHRUST_USE_LIBHIPCXX=ONis the default, and/opt/rocmis onCMAKE_PREFIX_PATH),roc::rocthrustlinkslibhipcxx::libhipcxx. Butrocm_export_targetsonly declared rocprim as a dependency, so the installedrocthrust-config.cmakenever callsfind_dependency(libhipcxx). Any project that doesfind_package(rocthrust)and linksroc::rocthrustthen fails at generate time:The link interface of target "roc::rocthrust" contains: libhipcxx::libhipcxxbut the target was not found.
This happens with both the projects/rocthrust and hipccl3 layouts, and could show up once libhipcxx CI is enabled.
In addition, the hipCCL superbuild with
HIPCCL_BUILD_LIBHIPCXX=ONwas not installing libihpcxx.Technical Details
In thrust/CMakeLists.txt (projects/rocthrust and projects/hipccl/hipccl3/rocthrust):
The installed rocthrust-config.cmake now contains find_dependency(libhipcxx) when rocThrust was built with libhipcxx, and only find_dependency(rocprim) otherwise.
libhipcxx::libhipcxx doesn't already exist.
Test Plan
Built rocPRIM/hipCUB/rocThrust from the same commit in the legacy layout and in hipccl3 (HIPCCL_BUILD_LIBHIPCXX=OFF, libhipcxx found from the nightly), on gfx90a and gfx942 (MI300X).
Test Result
Submission Checklist