fix(math-libs): make hipCCL build-depend on libhipcxx (carryover of #9933) #9963
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 458 lines diff across 5 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.367
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9963"
general
weight: 0.35
ammallya
Motivation
The hipCCL 3.1 superbuild (rocm-libraries
projects/hipccl/hipccl3) requires libhipcxx >= 3.4at configure time. TheRock builds libhipcxx as its own subproject, but declared it after hipCCL
(libhipcxx depended on prim), so hipCCL configured before libhipcxx was staged and the Math Libs
stage failed with
hipcub requires libhipcxx >= 3.4, but no suitable libhipcxx installation was.found
This reverses the dependency so libhipcxx is built before prim, and moves libhipcxx's tests,
which include hipCUB headers, into a separate subproject that builds after prim.
Technical Details
Build order and topology
math-libs/CMakeLists.txt: declarelibhipcxxbefore theTHEROCK_ENABLE_PRIMblock and addit to the
BUILD_DEPSofhipCCLandhipCCL_tests.BUILD_TOPOLOGY.toml:primlistslibhipcxxinartifact_deps, and[artifacts.libhipcxx]is declared before
[artifacts.prim].libhipcxx / libhipcxx_tests split
libhipcxxsubproject is built with-DLIBCUDACXX_ENABLE_LIBCUDACXX_TESTS=OFF-Dlibhipcxx_ENABLE_CMAKE_TESTS=OFF.
libhipcxx_testssubproject builds the same source with tests on, after prim. It isdeclared only when
THEROCK_BUILD_TESTINGandTHEROCK_ENABLE_PRIMare on.artifact-libhipcxx.toml: thetestcomponent comes frommath-libs/libhipcxx_tests/buildand is marked optional.
build_tools/packaging/linux/package.json:amdrocm-ccl-testselects the libhipcxx test filesby the
libhipcxx_testssubdirectory.rocThrust optional libhipcxx backend
rocm-librariespin, rocThrust linkslibhipcxx::libhipcxxwhen it findslibhipcxx, but its exported package config does not
find_package(libhipcxx), so consumers ofthe installed rocThrust would fail.
hipCCL,hipCCL_testsand the legacyrocThrustsubproject (
THEROCK_FLAG_BUILD_HIPCCL=OFF) pass-DROCTHRUST_USE_LIBHIPCXX=OFF, keepingrocThrust's behavior on
main.changes the option no longer exists and the flag is unused; it can be removed once the pin
includes that fix.
BUILD_DEPS: a subproject only receives packages from its ownruntime dependencies and its direct
BUILD_DEPS, soRUNTIME_DEPSwould not expose libhipcxxto hipCCL's consumers, none of which use the rocThrust or hipCUB package configs.
Artifact install script
build_tools/install_rocm_from_artifacts.py:--prim --devalso fetcheslibhipcxx_dev,since the installed rocThrust and hipCUB configs depend on libhipcxx. Unit tests added.
Consumer graph
test_tools/therock_consumer_graph.json:hipcclandhipccl_testsare consumers oflibhipcxx, and thelibhipcxx_testsnode is added.Test Plan
libhipcxx_tests;
libhipcxx_amdclang,libhipcxx_hiprtcand the rocPRIM, hipCUB and rocThrusttests pass; DEB/RPM build and install tests and the consumer-graph drift check pass.
build_tools/tests/install_rocm_from_artifacts_test.pyand thebuild_tools/packaging/linuxunit tests pass.
3.1-staging tip: a plain
find_package(rocthrust)consumer fails without the fix andconfigures, compiles and links with it.
Submission Checklist
JIRA ID: AIPRIMS-258