[libcu++] Skip fabric status decoding when a shared_memory_barrier wait has no report #12131
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 · 195 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.316
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #12131"
general
weight: 0.35
pciolkosz
Description
closes #12130
operation_status::get_error_count()andfor_each_error()called the device-side fabric status decoder even when the completed wait produced no report. On a GeForce RTX 5070 Ti (sm_120) with driver 617.42 (CUDA 13.4),cudaFabricOpErrorStatusCount()returnscudaErrorNotSupported, so__verify_fabric_status()trapped although there was nothing to decode.With this change,
__error_count()returns 0 without calling the decoder when there is no report. When a report is present nothing changes:classify()(which requires a report) and the decoding of real error reports still go through the driver.Testing (local RTX 5070 Ti, CUDA 13.4, WSL2, gcc 16):
shared_memory_barrier.pass.cppun-waived locally, the test fails before this change and passes after it.cuda/barrierlit tests pass.Missing waiton this test both before and after the change. A plain inline-PTX kernel gets the same report as soon as its mbarrier is initialized withlayout::v1(clean with layout v0), so this looks like a compute-sanitizer 2026.3 issue that is unrelated to this change.The test stays waived in this PR: as described in #11935, older CI drivers cannot load its module.
Checklist
shared_memory_barrier.pass.cpp, still waived in CI because of #11935.)