fix(hipccl): use hipStreamWaitValue64 to block streams in caching allocator test #13997
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 191 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.315
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #13997"
general
weight: 0.35
amd-hsong
Motivation
hipcubCachingDeviceAllocatorTests.Test1hangs on Windows (PAL backend, observed on gfx1151) in Debug builds.The test kept streams busy with a kernel that spins until the host writes a flag. At
-O0that kernel uses scratch, so the first launch on other_stream makes the runtime set up scratch for the new queue, which waits for all queues to go idle. Stream 0 never goes idle because its spinning kernels are waiting for the host, sohipLaunchKernelnever returns. Release builds pass because the kernel needs no scratch.Jira ID: ROCM-31867
Technical Details
Replace the spinning kernel with
hipStreamWaitValue32on a flag in signal memory, released by an atomic store from the host:hipDeviceAttributeCanUseStreamWaitValueis not set.other_streamas non-blocking, since the test does not depend on implicit synchronization with the null stream.Test Plan
Build and run the test on Linux and Windows, on systems with APUs and discrete GPUs.
Test Result
All manually run tests pass.
Submission Checklist