Configure Open MPI environment variables and paths#352
Merged
Conversation
Added environment variables and paths for Open MPI relocation.
SeanBryan51
added a commit
to CABLE-LSM/benchcab
that referenced
this pull request
Jan 12, 2026
Recent changes to the xp65 environment [ACCESS-NRI/ACCESS-Analysis-Conda#352](ACCESS-NRI/ACCESS-Analysis-Conda#352) is causing CMake to pick up the wrong MPI library (/g/data/xp65/public/apps/openmpi/4.1.6 instead of /apps/openmpi/4.1.0/). The OPAL_PREFIX environment variable causes the xp65 MPI library to take precedence over any MPI libraries loaded via module load - as a workaround, this change unsets this variable from the build environment to fix this issue.
SeanBryan51
added a commit
to CABLE-LSM/benchcab
that referenced
this pull request
Jan 12, 2026
Recent changes to the xp65 environment [ACCESS-NRI/ACCESS-Analysis-Conda#352](ACCESS-NRI/ACCESS-Analysis-Conda#352) is causing CMake to pick up the wrong MPI library (/g/data/xp65/public/apps/openmpi/4.1.6 instead of /apps/openmpi/4.1.0/). The OPAL_PREFIX environment variable causes the xp65 MPI library to take precedence over any MPI libraries loaded via module load - as a workaround, this change unsets this variable from the build environment to fix this issue.
SeanBryan51
added a commit
that referenced
this pull request
Jan 12, 2026
The OPAL_PREFIX environment variable introduced in PR #352 causes the xp65 MPI library to take precedence over any MPI libraries loaded via module load - as a workaround, this change unsets this variable from the build environment to fix this issue. References CABLE-LSM/benchcab#341
SeanBryan51
added a commit
that referenced
this pull request
Jan 12, 2026
The OPAL_PREFIX environment variable introduced in PR #352 causes the xp65 MPI library to take precedence over any MPI libraries loaded via module load - as a workaround, this change unsets this variable from the build environment to fix this issue. References CABLE-LSM/benchcab#341
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 pull request updates the
modules/common_v3environment module to properly configure the Open MPI installation after its relocation from thehh5toxp65filesystem. The changes ensure that all relevant environment variables and paths are set for Open MPI to function correctly.Note that I have used this approach to avoid having to recompile the executable which could have caused back compatibility issues.
Open MPI relocation and environment configuration:
OPAL_PREFIXenvironment variable and update thePATHto include the new Open MPI binary directory (/g/data/xp65/public/apps/openmpi/4.1.6/bin).LD_LIBRARY_PATHto include eitherliborlib64directories from the new Open MPI location, depending on which exists.MANPATHandPKG_CONFIG_PATHwith the appropriate Open MPI directories if they exist, improving usability for developers.Added environment variables and paths for Open MPI relocation.