Use device arena for the_fa_arena when activating GPU-aware MPI #3362
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
This change suggested by @WeiqunZhang points
the_fa_arena
toThe_Device_Arena
when activating GPU-aware MPI. This obviates the need for settingthe_arena_is_managed=0
to take advantage of GPU-aware MPI since it does not work well with managed memory.Additional background
The motivation for this PR is that this was an long-pending change but the immediate trigger was finding that GPU-aware MPI can reduce communication times significantly but that currently needs setting
the_arena_is_managed=0
. Not setting this for GPU-aware MPI currently results in degraded performance.Past discussion on GPU-aware MPI: #2967
Preliminary performance test
Running 100 steps on 8 GPUs over 2 Perlmutter A100 nodes with
Tests/GPU/CNS/Exec/Sod
,amr.n_cell = 128^3
per GPU,amr.max_grid_size = 128
,amrex.use_profiler_syncs = 1
and setting optimal GPU affinities.Without
amrex.use_gpu_aware_mpi=1
With
amrex.use_gpu_aware_mpi=1