← Back to Pull requests

[libcu++] Skip fabric status decoding when a shared_memory_barrier wait has no report #12131

Closed
unknown closed this pull request without merging on Oct 23, 2026 18:20 UTC
View on GitHub
unknown unknown commented on Oct 21, 2026 16:39 UTC
Author

Description

closes #12130

operation_status::get_error_count() and for_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() returns cudaErrorNotSupported, 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):

  • With shared_memory_barrier.pass.cpp un-waived locally, the test fails before this change and passes after it.

  • All 28 cuda/barrier lit tests pass.

  • compute-sanitizer racecheck and memcheck are clean on the test.

  • compute-sanitizer synccheck reports Missing wait on this test both before and after the change. A plain inline-PTX kernel gets the same report as soon as its mbarrier is initialized with layout::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


  • New or existing tests cover these changes. (Existing shared_memory_barrier.pass.cpp, still waived in CI because of #11935.)

  • The documentation is up to date with these changes. (No user-visible API change.)
  • Diff: 195 lines (+146 / -49) across 2 files Reviewer: pciolkosz Review duration: 2980m
    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
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36% (MEDIUM) · Higher = larger blast radius
    36%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.2% · Safe to merge
    14.2%
    Repository