[gfx1250] Link hip::hipcub so hipCUB finds libhipcxx #822
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 269 lines diff across 3 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.335
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #822"
general
weight: 0.35
matthiasdiener
Description
TheRock ROCm images from 10.3.0a20261125 onward ship hipCUB 5.1, which requires libhipcxx. libhipcxx is installed only under
<rocm>/include/hipccl. TE uses hipCUB (permutation, topk) without hipCUB's CMake package and relies on the default include path, so on these imagespermutation.hipandtopk.hipfail to compile withlibhipcxx could not be found. This links the header-onlyhip::hipcubtarget, the standard way to consume hipCUB (PyTorch's LoadHIP does the same), which adds the hipccl include directory.The failure depends on the ROCm version, not the GPU architecture: every ROCm build on these images is affected (gfx942, gfx950, gfx1250). Older ROCm is unaffected.
Fixes # (issue)
Type of change
Changes
find_package(hipcub)and link the header-onlyhip::hipcubtarget intotransformer_engine. It only adds<rocm>/include/hipcclto the compile include paths; no source, define or link-library change.Tested on TheRock 10.3.0a20261127 (MI455X, gfx1250 and gfx1250-strict): the library builds; without the change permutation/topk fail to compile. The other 108 of 110 library sources preprocess identically with and without the change. PyTorch permutation and JAX topk tests pass on the GPU.
Checklist: