← Back to Pull requests

[Mosaic GPU] Exclude always-false instructions from register count #42069

Open
unknown opened this pull request with 255 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 28, 2026 11:53 UTC
Author

The Mosaic tile copy test (mosaic.gpu_test.test_copy_tiled) for tiled array round-trip through GPU shared memory and registers fails an assertion based on address-register count with a consistent off-by-one (+1) greater than expected LDS (load from shared memory) address-register count, while it passes the assertion on the tiled array values.

FAIL: test_copy_tiled0 (dtype=<class 'jax.numpy.int8'>, swizzle=16, num_col_tiles=1, row_tiling=8) (__main__.LayoutTest) [LDS count]

> LayoutTest.test_copy_tiled0 (dtype=<class 'jax.numpy.int8'>, swizzle=16, num_col_tiles=1, row_tiling=8)

> test_copy_tiled(dtype=<class 'jax.numpy.int8'>, swizzle=16, num_col_tiles=1, row_tiling=8)

> ----------------------------------------------------------------------

> Traceback (most recent call last):

> File "/root/.cache/bazel/_bazel_root/cfd1b2cc6fe180f3eb424db6004de364/execroot/_main/bazel-out/k8-opt/bin/tests/mosaic/gpu_test_gpu.runfiles/_main/tests/mosaic/gpu_test.py", line 7665, in test_copy_tiled

> self.assertLessEqual(len(used_regs), expected_regs)

> AssertionError: 2 not less than or equal to 1

> ======================================================================

The failure is observed for all argument combinations of the test for dtype=int8|int32 and exclusively on H100 with CUDA 13.5 while it is passing on all other device types (e.g Blackwell, Rubin). It is passing on H100 with CUDA 13.4 with the same JAX source.

Inspection of the SASS dump from execution of test_copy_tiled0 shows that the error appears to be attributable to a false-positive inclusion of a false-predicate instruction in the test's counting utility. The failing CUDA 13.5 output contains four @!PT LDS RZ, [RZ] instructions that are absent from the passing CUDA 13.4 output which account for the +1 unexpected additional address-register.

False-predicate instructions are not executed at all and can be excluded from the count in the test.

Diff: 255 lines (+191 / -64) across 3 files Reviewer: bchetioui Review duration: 12082m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 255 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.332
Real PR Conversation Timeline
1 comments
"Review active on #42069"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% 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: 39.1% (MEDIUM) · Higher = larger blast radius
39.1%
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: 46.7% · Lower = rushed or shallow review
46.7%
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: 20.8% · Safe to merge
20.8%
Repository