-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ghost translation #1006
Open
markusbattarbee
wants to merge
113
commits into
fmihpc:dev
Choose a base branch
from
markusbattarbee:GhostTranslation
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Ghost translation #1006
Conversation
This file contains 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
…is at higher refinement level instead of continuing over VLASOV_STENCIL_WIDTH
… based on Yann's feedback
…arbee/vlasiator-public into AMR_translation_optimizations
Also stupidly hardcoded debug output.
Extra padding is no longer required, since dccrg is now behaving much more sanely wrt. neighbors.
ykempf
reviewed
Aug 22, 2024
ykempf
reviewed
Aug 22, 2024
…scaling with ghost translation extent). Commented-out code for limited remote neighbour list updates.
…memory issues on restart
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.
Replaces #609
Incorporates #1000
This PR introduces ghost translation (previously known as local translation). Allows for running all Vlasov translation with coalesced MPI just before the actual call, reducing the overhead related to 3D imbalances. This comes at the cost of having to actually compute translation for a boundary of ghost cells. This also requries a grid neighborhood of VLASOV_STENCIL_WIDTH+1 which does incur some overhead.
Turn on ghost translation with
vlasovsolver.GhostTranslate
set to true. This current form of the PR forces this on so we get CI with it active, but it should probably be turned off as default.The correctness of this method was validated with local tests but this PR should re-confirm it with CI. If so preferred, a smaller ghost neighbourhood can be translated instead of all required, resulting in some diffs at process boundaries, but less of an overhead. This might be useful for example for early flushing of a simulation. The size of the stencil to include in ghost translation can be set with
vlasovsolver.GhostTranslateExtent
. The parameter has a default of0
which is automatically replaced withVLASOV_STENCIL_WIDTH+1
. Values greater than that are capped. Thus, possible values are between1
andVLASOV_STENCIL_WIDTH+1
.