fix(hipcub): avoid OOM in MergeLargeSizeIterators test on APUs #15674
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 176 lines diff across 2 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.310
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #15674"
general
weight: 0.35
umfranzw
Motivation
On 30 GB gfx1170 (Medusa) APUs, the out-of-memory killer kills test_hipcub_device_merge, so QA's hipCUB ctest run reports no results (ROCM-34274). Since the CCCL 3.0 port, HipcubDeviceMerge.MergeLargeSizeIterators uses int64_t keys. For the {2^30, 5000} size it holds four buffers of about 8 GiB each at the same time (host inputs, host expected result, device output, host copy of the output), about 32 GiB in total. On an APU the device buffer is also system memory.
JIRA ID : ROCM-34274
Technical Details
For the largest size, peak memory drops from about 32 GiB to the 8 GiB device buffer plus temp storage plus 256 MiB of host memory.
Test Plan
Verify tests pass without OOM.
Test Result
Tests passed on gfx90a plus a simulated APU.
Submission Checklist