Repository navigation
perf: node numbering per level, accumulation owners by table, and regrid(fields=) - #75
Merged
Merged
Conversation
…d tags from marker counts.
…ed by marker counts.
…, owners by rank table, and regrid(fields=).
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
CompositeNodesfinds the cells under finer patches from one coverage mask per level. It used to compare every patch with every patch of the next level, which is quadratic in the patches; with 386 quadtree blocks the numbering goes from 143 to 24 ms.accumulate_halosschedule takes the rank of a node's owner from a table when the owner is on one rank. Owners on several ranks still go through the loop.regrid.in_domainis a bounds check when the domain fills its box.regrid(..., fields=[...])names the fields whose values are moved (default: all). The others are allocated on the new hierarchy and zero. A particle code that deposits the charge and solves for the potential after every regrid can skip the transfer.benchmarks/quadtreeregrids withfields=[]unless--move-fieldsis given;RESULTS.mdhas the runs.Serial, median of 3, ms per step (total):
fields=[]The pair cache does not make the halos measurably faster. What is left of their schedule is the
CopyPlan(~65 ms with 386 patches), the coarse-to-fine interpolation of patches whose neighbourhood changed (~35 ms) and the reuse checks (~33 ms). These numbers are inRESULTS.md.Checklist
pre-commit runandpytestpass (731 passed locally; picnic's patchwork solver tests pass against this branch withfields=[])docs/, tutorials orREADME.qmd) are updated where the behaviour changedfeat:,fix:,docs:, ...)