Repository navigation
LinearSolveDistributed: add weak-scaling and serial-crossover documents - #1639
Merged
Merged
Conversation
…uted WeakScaling.jmd: constant work per rank across rank counts, reporting weak efficiency and GAMG iteration counts with the same auditability guards as the strong-scaling document (iteration-growth and >110% efficiency warnings). The closing section documents a structural property the first runs surfaced: the replicated-input path makes every rank assemble the full matrix, so assembly cost grows with total N even though per-rank solver work is constant. SerialCrossover.jmd: the best serial direct factorizations (UMFPACK, KLU, SupernodalLU) against the distributed GAMG-CG path at a fixed rank count across a size sweep, answering when distribution starts paying at all. Both sides pay their honest setup costs and the distributed iteration counts are printed so algorithmic flatness is checkable. First validation runs: serial wins throughout the committed range (SupernodalLU fastest at every size), placing the crossover above it; extending the range on dedicated hardware is the documented follow-up. Folder environment: add Printf (used by both documents) and update LinearSolve so SupernodalLUFactorization is available. Both documents validated end-to-end locally, all correctness gates green.
Member
|
This is too much to build into the docs, it should instead be in SciMLBenchmarks with a link |
Member
Author
|
This one adds the documents to SciMLBenchmarks itself (benchmarks/LinearSolveDistributed, following #1636), not to any docs build; nothing here runs at docs time. |
Member
|
Oops, I thought it was the other repo lol. Okay that makes more sense. BTW the other is now running: https://github.com/SciML/SciMLBenchmarks.jl/actions/runs/31533701626/job/93919680557 |
Member
Member
|
That second plot is a bit odd? But let's merge this since it looks like it's working, and a small follow up can come. |
ChrisRackauckas
pushed a commit
that referenced
this pull request
Aug 21, 2026
… scaling (#1641) * Raise distributed benchmark sizes for the runner; two-regime strong scaling Follow-up invited in #1639 review. The first runner execution reproduced the known small-N cache artifact in strong scaling (9x speedup on 2 ranks, 35x on 4 at N=40k), so StrongScaling.jmd now runs two sizes deliberately: N=40k as the labeled cache-artifact regime and N=1e6 as the honest regime, plotted together so the contrast is the content rather than a puzzle. Ranks extend to 8 in both scaling documents; weak scaling moves to 100k unknowns per rank; the crossover sweep extends to 1e6 to bracket the crossover the first run placed above 90k. Budget: the runner completed the whole folder in 20 minutes at the previous sizes; scaled per-solve estimates put the raised folder around two hours, well inside limits. * Retrigger benchmark run after runner queue cancellation * Retrigger benchmark run after second queue cancellation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Summary
Completes the planned document set for
benchmarks/LinearSolveDistributed(follows #1636):WeakScaling.jmd: constant work per rank across rank counts, reporting weak efficiency and GAMG iteration counts with the same auditability guards as the strong-scaling document (iteration-growth and above-110% efficiency warnings). The first validation runs surfaced a structural property now documented in the text: the replicated-input path makes every rank assemble the full matrix, so assembly cost grows with total N even though per-rank solver work is constant, and measured weak efficiency reflects both effects.
SerialCrossover.jmd: the best serial direct factorizations (UMFPACK, KLU, SupernodalLU) against the distributed GAMG-CG path at a fixed rank count across a size sweep, answering the most actionable question about a distributed solver: when to reach for it at all. Both sides pay their honest setup costs, serial timings are correctness-gated, and the distributed iteration counts are printed so algorithmic flatness is checkable. In the committed range the serial factorizations win throughout (SupernodalLU fastest at every size), placing the crossover above it; extending the range on dedicated hardware is the documented follow-up.
Folder environment: adds Printf (used by both documents) and updates LinearSolve so SupernodalLUFactorization is available.
Validation
All four folder documents (the two new ones and the two existing ones, which also run under the updated Manifest) were woven end-to-end in isolated containers replicating the CI path: setup.sh MPI pin, instantiate of the exact committed environment, then benchmark.jl per document. Four of four produce markdown with every correctness gate green. The two new documents were additionally validated locally at the full committed sizes.