Fix: GPU runs w/o GPU-Aware MPI#1532
Open
ax3l wants to merge 4 commits into
Open
Conversation
60d0afe to
80b383c
Compare
ax3l
commented
Jun 25, 2026
A few of our reductions in collective effects where assuming we have GPU-aware MPI support. In some cases, eg., conda-forge desktop MPICH this is not the case and crashes. This adds the conditional d2h copies before speaking to MPI in those cases.
80b383c to
dde4e84
Compare
ax3l
commented
Jun 25, 2026
ax3l
commented
Jun 25, 2026
5 tasks
WeiqunZhang
pushed a commit
to AMReX-Codes/amrex
that referenced
this pull request
Jun 27, 2026
## Summary Adds a new header `AMReX_GpuParallelReduce.H` which GPU-overloaded and support for MPIs with and without GPU-awareness (GPU-pointer support) in a safe manner. ## Additional background Added to prevent common usage bugs like BLAST-ImpactX/impactx#1532 ## Checklist The proposed changes: - [ ] fix a bug or incorrect behavior in AMReX - [x] add new capabilities to AMReX - [ ] changes answers in the test suite to more than roundoff level - [ ] are likely to significantly affect the results of downstream AMReX users - [ ] include documentation in the code and/or rst files, if appropriate
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.
A few of our reductions in collective effects where assuming we have GPU-aware MPI support. In some cases, eg., conda-forge desktop MPICH this is not the case and crashes. This adds the conditional d2h copies before speaking to MPI in those cases.
DeviceVectorAMReX-Codes/amrex#5516