Skip to content

LinearSolveDistributed: add weak-scaling and serial-crossover documents - #1639

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
AJ0070:b2-b3-distributed
Aug 12, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
AJ0070:b2-b3-distributed

Conversation

@AJ0070

@AJ0070 AJ0070 commented Aug 11, 2026

Copy link
Copy Markdown
Member

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.

…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.
@ChrisRackauckas

Copy link
Copy Markdown
Member

This is too much to build into the docs, it should instead be in SciMLBenchmarks with a link

@AJ0070

AJ0070 commented Aug 12, 2026 •

Copy link
Copy Markdown
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.

@ChrisRackauckas

Copy link
Copy Markdown
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

@ChrisRackauckas

Copy link
Copy Markdown
Member
WeakScaling_4_1 StrongScaling_5_1 StrongScaling_4_1 SerialCrossover_4_1

@ChrisRackauckas

Copy link
Copy Markdown
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
ChrisRackauckas merged commit ce6bd3f into SciML:master Aug 12, 2026
7 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants