Shard simulations across Hermite modes#23
Open
rogeriojorge wants to merge 1 commit into
Open
Conversation
rogeriojorge
force-pushed
the
agent/species-sharding
branch
from
July 13, 2026 09:15
60e51d7 to
aaef6ee
Compare
rogeriojorge
force-pushed
the
agent/hermite-sharding
branch
from
July 13, 2026 10:05
0ef8517 to
c4d9bb6
Compare
rogeriojorge
marked this pull request as ready for review
July 13, 2026 14:55
rogeriojorge
force-pushed
the
agent/hermite-sharding
branch
from
July 16, 2026 13:09
c4d9bb6 to
38b7e55
Compare
rogeriojorge
marked this pull request as draft
July 16, 2026 13:12
rogeriojorge
force-pushed
the
agent/species-sharding
branch
from
July 16, 2026 13:21
aaef6ee to
398de8e
Compare
rogeriojorge
force-pushed
the
agent/hermite-sharding
branch
from
July 16, 2026 13:27
38b7e55 to
1b9631f
Compare
rogeriojorge
force-pushed
the
agent/hermite-sharding
branch
from
July 16, 2026 13:45
1b9631f to
fab42d0
Compare
rogeriojorge
marked this pull request as ready for review
July 17, 2026 20:26
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
lax.ppermuteThis is stacked on #15 and reuses its
species_meshargument. The Vlasov-Maxwell equations are unchanged.Communication layout
The distribution uses
P("species", None, None, "hermite"). The RHS communicates nearest-neighbor Hermite halos and the low-order current; it does not all-gather the distribution. This follows the Fourier-Hermite layout of Parker and Dellar: retain complete Fourier spectra locally and communicate adjacent Hermite modes.Validation
pytest -q: 5 passed1e-12Post-warm Orszag-Tang timing on a 14-core Apple M3 Max, 129x129 Fourier, 32x4x4 Hermite, 100 Euler steps:
The eight-device process reaches about 840% CPU utilization. A smaller 65x65, 16x4x4 case saturated at 1.88x on four and 1.96x on eight, so useful local work per shard is essential.
Exact-head A4000 timing at 129x129 Fourier, 28x4x4 Hermite, 200 Euler steps:
Ck,Fk, and total energy are bitwise identical between the one- and two-GPU runs. Both A4000s were otherwise idle during measurement.Constraints
NsNnand leave at least two local modesReferences: https://arxiv.org/abs/1407.1932 and https://docs.jax.dev/en/latest/notebooks/shard_map.html