You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fused "S" factor on the 78k KKT is 1.1x above the stock eps-perturbation response (T35 gate (b)) #181
Found while working on: T35 (#180; PR to follow from task/T35-deterministic-fused)
What: T35 restates the factor gate of bench/ARCH-TUNING.md (ground rule 1) as (a) bitwise run-to-run equality under deterministic_mode = 1 and (b) fused vs stock no larger than the stock path's response to an eps-level perturbation of A (the #177 table). With T35 the fused factorization is bitwise reproducible (the extend-add and the in-kernel wide tiles are ordered), so its fused-vs-stock delta is now a constant per matrix. On the 78k condensed KKT (pglib_opf_case78484_epigrids, n = 674562) factored as "S" that constant is 1.1e-7 (L; D 9.9e-10 in #177) against a stock eps-perturbation response of 9.8e-8: (b) fails by 1.1×, as it did at main (1.2–1.3e-7 there, #177's "about 1.2×"). Measured on an H200 (sm_90), FusedSolver default tuning, 20 refactorizations, info 0, backward error equal to the stock one per #177. Every other harness matrix passes (b) (78k "SPD" 1.4e-8 vs 3.6e-8; case118 / case1354 "S" 1.8e-8 / 2.6e-8 vs 5.5e-8 / 7.0e-8; the well-conditioned ones ≤ 1.3e-15). The offset is the systematic rounding of the fused no-pivot LDLᵀ kernels (_front_ldl_update!/_front_ldl_scale!, the WPANEL/WTILE LDL paths with the pivots folded into the Ai tile) against the stock LDLᵀ, not the arrival order (which T35 removed).
Why it is out of scope: T35 orders the sums; it does not change the LDLᵀ arithmetic, and its text says the "S" offset stays. No task in TASKS.md owns the fused LDLᵀ rounding. It does not block anything: MadNLP uses the fused "S" factor with the stock backward error (#177).
Suggested fix or plan change: either read (b) for "S" against the fused path's own eps-perturbation response (1.2e-7 on the 78k, #177) or the factor backward error, or find which fused LDL kernel step (pivot folding in WTILE/TILE, the in-panel d scaling) carries the offset and match the stock rounding there.
Resolved on PR #182 at 1e25b33 (closes with the merge) rather than as a separate task. Re-measured on the final T35 tree (H200, sens.jl of #177, 5 refactorizations, run-to-run 0 in both paths): the 78k "S" fused-vs-stock offset is a constant 1.1e-7, which is 1.1× the stock eps-perturbation response (9.8e-8) but 0.8× the fused path's own response (1.4e-7), with factor backward errors 1.60e-16 (fused) vs 1.59e-16 (stock); case118 / case1354 "S": 1.8e-8 / 2.6e-8 against stock 5.5e-8 / 7.0e-8 and fused 3.7e-8 / 6.0e-8, backward errors equal. The delta between two roundings of one factorization is bounded by the sensitivity of either, so ground rule 1 (b) in bench/ARCH-TUNING.md now reads against the larger of the two paths' eps responses and additionally requires the fused factor's backward error to match the stock one's. Under that gate every harness matrix passes. The fused LDLᵀ arithmetic is unchanged.
Activity
T35: gate (b) against either path's eps response plus the backward er…
michel2323 commentedon Nov 4, 2026
Resolved on PR #182 at 1e25b33 (closes with the merge) rather than as a separate task. Re-measured on the final T35 tree (H200,
sens.jlof #177, 5 refactorizations, run-to-run 0 in both paths): the 78k"S"fused-vs-stock offset is a constant 1.1e-7, which is 1.1× the stock eps-perturbation response (9.8e-8) but 0.8× the fused path's own response (1.4e-7), with factor backward errors 1.60e-16 (fused) vs 1.59e-16 (stock); case118 / case1354"S": 1.8e-8 / 2.6e-8 against stock 5.5e-8 / 7.0e-8 and fused 3.7e-8 / 6.0e-8, backward errors equal. The delta between two roundings of one factorization is bounded by the sensitivity of either, so ground rule 1 (b) inbench/ARCH-TUNING.mdnow reads against the larger of the two paths' eps responses and additionally requires the fused factor's backward error to match the stock one's. Under that gate every harness matrix passes. The fused LDLᵀ arithmetic is unchanged.