Added configuration option and associated documentation for setting up MPItrampoline#41
Merged
omlins merged 1 commit intoJuliaParallel:mainfrom Apr 2, 2026
Merged
Conversation
…p MPI with MPItrampoline
Collaborator
|
Nice! Thanks for the detailed explanation of your PR. If you ever feel like going one step further and automatize also the MPI trampoline installation and environment variable setting, then please open the PR again. In any case I'm merging it now as is. |
Collaborator
|
@fergu : released in v0.6.0! |
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.
This is a small change to allow a user to define
JUHPC_MPI_TRAMPOLINEto have MPIPreferences configured to useMPItrampolineper the instructions here.This will fix an issue where, if system versions of both MPI and HDF5 are specified, julia will segfault during precompilation of HDF5. This is a known issue associated with calls to MPI from HDF5 incorrectly picking the julia-supplied version of MPI, even when MPIPreferences is pointed to a system version. See JuliaIO/HDF5.jl#1079 and JuliaParallel/MPI.jl#835. The recommended workaround for this is to use MPITrampoline: JuliaIO/HDF5.jl#1079. There's been some interest in making MPITrampoline the default, so supporting this is probably good: JuliaParallel/MPI.jl#801
The main downside to this approach is that MPItrampoline requires the user to compile and install a wrapper and set an associated environment variable: https://github.com/eschnett/MPIwrapper, which is an extra step but not terribly difficult.
The changes are:
README.md: Adds a description ofJUHPC_MPI_TRAMPOLINEand modifies the descriptions ofJUHPC_MPI_HOMEandJUHPC_MPI_VENDORto indicate thatJUHPC_MPI_TRAMPOLINEis incompatible with the others.juhpc: Modifies line 218 to installMPIPreferencesifJUHPC_MPI_TRAMPOLINEis defined. Also adds an additionalelifstatement that is executed ifJUHPC_MPI_TRAMPOLINEis defined (andJUHPC_MPI_HOMEandJUHPC_MPI_VENDORare not). This sets MPIPreferences to useMPITrampoline_jllper the directions here.