mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #375] STRATA_GR_V3=1 fails gr_parity self-consistency checks on Turing (sm_75) — likely the S=2 column-half split path #179
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#179
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kenh0u on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/375
STRATA_GR_V3=1failsgr_parityself-consistency checks on Turing (sm_75) — likely the S=2 column-half split pathHi — reporting a reproducible failure of the opt-in
STRATA_GR_V3=1decode path on an all-Turing machine. The default path is completely fine, so this is informational rather than urgent; Turing is also the one architecture where the V3 path can be safely avoided, which is why I'm reporting instead of digging in myself.Environment
9259cad), built from source forCMAKE_CUDA_ARCHITECTURES=75Reproduction
All three failures are self-consistency checks of the multi-token path (multi-token vs. per-token, graph replay vs. direct call), not comparisons against a reference oracle — so the V3 path disagrees with itself depending on how it is invoked.
Suspected cause
In
src/kernels/cuda/fused_gr.cu, the per-devicesplit3[]decision picks the number of column halvesSfromcudaDevAttrMaxSharedMemoryPerBlockOptin. Ampere (99 KB) selects S=1, which I believe is the configuration actually validated upstream. Turing tops out at 64 KB opt-in, which selects the S=2 branch — so on this rig the failure is landing on a path that has probably never run anywhere. I searched the issues and didn't find a prior report. A reduction-order / late-scale issue in thegr_down_v3_kernel<2>split, or a missing branch in the graph-capture setup for S=2, would both fit the symptom pattern (the graph-vs-direct failure in particular suggests something beyond a plain numeric bug).For completeness: the sm_75 TILE=1280 down-kernel specialization that landed in 0.1.31 (#258) is not implicated — it instantiates the default
gr_down_multi_kernel, and the default path (which uses it on this machine) passes with 0 failures.Why I'm not sending a fix
Turing is the only hardware class that hits the S=2 path, and the workaround on this hardware is simply not setting
STRATA_GR_V3=1— the default kernels are correct and fast enough. Debugging the S=2 branch means iterating entirely on sm_75 hardware that won't benefit from the result, so the practical value of fixing it seems concentrated on whichever architecture eventually lands at 64 KB. I figured the maintainers would rather know the branch is untested-and-broken than have it stay silent, and a Turing user who cares about V3 performance has the motivation (and the hardware) to take it from here.Happy to run any specific experiment on this machine if that would help narrow it down.
@Niko1221 commented on GitHub (Oct 1, 2026):
Thanks for the clear report and the diagnosis. The first failure (multi-token vs single-token) is expected under V3, since it sums in another order; PR #379, taken for the next release, compares that within float rounding. The graph-vs-direct disagreement on the S=2 split is real, and we can't reproduce it on Turing here. So in the next release
STRATA_GR_V3=1on a card that needs the two-half split keeps the default read and says so, until that split is fixed. The default path was never affected. This issue closes with the release.@Niko1221 commented on GitHub (Oct 1, 2026):
Released in 0.1.33:
STRATA_GR_V3=1keeps the default read on a card that needs the two-half split, and gr_parity compares V3 within rounding (#379). Thanks!