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
Diagonal pivoting (pivot_type = 'D') on the fused pipeline: the stock pipeline is ~3x slower per iteration under MadNLP's ShiftedPreset #201
MadNLP's SDSSolver now factors with diagonal pivoting (pivot_type = 'D') under ShiftedPreset (madsuite-org/MadNLP.jl#731, sds_pivoting = :diagonal), because without pivoting a set of CUTEst/COPS instances fails that cuDSS solves. 'D' runs only on the stock pipeline (FusedSolver refuses "S" with pivot_type ≠ 'N'), and the stock pipeline is several times slower per iteration than the fused no-pivot one. This asks for 1×1 diagonal pivoting inside each front on the fused pipeline, or another way to close that gap.
Why 'D'
On the 15 instances of a CUDA benchmark that failed with ShiftedPreset without pivoting (fused, pivot_type = 'N', matching "algo6", pivot_epsilon = 1e-10, ir_n_steps = 2) and that cuDSS solves under the same preset, a local rerun with the same options and pivot_type = 'D' on the stock pipeline (GV100) solved 5: COPS henon_10 (iteration limit → 76 iterations), CUTEst HEART8, HVYCRASH, PFIT1, TRO5X5. The other 10 still fail.
Cost
Benchmark runs of MadNLP #731 on CUDA, ACOPF (pglib, 121 instances solved by both so far):
linear-solve time per iteration, ratio 'D' / none (geometric mean)
3.2×
The runs landed on different GPUs (job 220: H100 and RTX PRO 6000; job 224: H200 and L40S), so times compare only roughly, but the gap holds on the largest cases where job 224 had the faster GPU (for example case19402_goc_rect: 20.4 s on an RTX PRO 6000 without pivoting, 81.8 s on an H200 with 'D'). Iteration counts are the same, so the cost is the factorization and solve, not the IPM. Comparison report: https://benchmark.madsuite.org/madnlp/report-31/
Related
#167 records the closed fused Bunch–Kaufman prototypes (#135, #139), whose second branch also had a :diag mode. 1×1 diagonal pivoting has no 2×2 blocks, which may make a fused version simpler than Bunch–Kaufman. #200 is the separate fused width limit.
Merged into #167: the description there now has this issue's text (why 'D', the cost under MadNLP's ShiftedPreset) next to the Bunch–Kaufman prototypes, since both need the same pivot-aware fused solve.
Activity
michel2323 commentedon Nov 15, 2026
Merged into #167: the description there now has this issue's text (why
'D', the cost under MadNLP'sShiftedPreset) next to the Bunch–Kaufman prototypes, since both need the same pivot-aware fused solve.