Repository navigation
Run SDC sweeps in parallel across the collocation nodes - #4348
Merged
Merged
Conversation
singhharsh1708
force-pushed
the
sdc-parallel
branch
3 times, most recently
from
August 29, 2026 08:15
dd05d8c to
282a3ce
Compare
singhharsh1708
force-pushed
the
sdc-parallel
branch
4 times, most recently
from
September 1, 2026 02:28
f49073b to
060e4c6
Compare
singhharsh1708
marked this pull request as ready for review
September 1, 2026 02:43
Member
Author
|
@ChrisRackauckas ready for review, stacked on #4347. |
singhharsh1708
force-pushed
the
sdc-parallel
branch
2 times, most recently
from
September 12, 2026 12:31
e9b1f0f to
8de0e64
Compare
singhharsh1708
force-pushed
the
sdc-parallel
branch
from
September 14, 2026 16:40
8de0e64 to
7edc3e2
Compare
Member
Author
|
@ChrisRackauckas restacked on #4347 after the rebase, ready for review once that one is in. |
singhharsh1708
force-pushed
the
sdc-parallel
branch
3 times, most recently
from
September 17, 2026 20:38
feec120 to
89d7949
Compare
singhharsh1708
force-pushed
the
sdc-parallel
branch
from
September 19, 2026 07:27
89d7949 to
6979e99
Compare
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.
With a diagonal
QΔtheMnode solves in an SDC sweep are independent, sothreading = trueruns them concurrently on the in-place path;BaseThreads()andPolyesterThreads()from Core work too, and threading with a non-diagonal sweeper is rejected at construction because it would silently drop the coupling. This is parallel across the method in Speck's sense.Stiff 1-D reaction-diffusion with
M = 4nodes on 4 threads: 64 unknowns 0.0093 s to 0.0072 s (1.3x), 256 unknowns 0.0905 s to 0.0460 s (2.0x), 1024 unknowns 2.42 s to 1.42 s (1.7x). Results match the serial sweep; the full suite passes on one, two and four threads.The threading tests run as their own
Threadedgroup at two threads, because the default sublibrary matrix runs Core at one thread and the comparison against the serial sweep proves nothing there.Threaded runs undercount
sol.stats:nlsolve!andcalc_W!add tointegrator.statswith a plain+=from whichever thread runs the node, so the threading test compares solutions and not statistics. Counting exactly needsnlsolve!to take its own counters.AI Disclosure: Claude assisted with this change.