Skip to content

Configure Open MPI environment variables and paths#352

Merged
rbeucher merged 1 commit intomainfrom
Fix_hh5_openmpi_relocation
Dec 16, 2025
Merged

Configure Open MPI environment variables and paths#352
rbeucher merged 1 commit intomainfrom
Fix_hh5_openmpi_relocation

Conversation

@rbeucher
Copy link
Member

This pull request updates the modules/common_v3 environment module to properly configure the Open MPI installation after its relocation from the hh5 to xp65 filesystem. 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:

  • Added logic to set the OPAL_PREFIX environment variable and update the PATH to include the new Open MPI binary directory (/g/data/xp65/public/apps/openmpi/4.1.6/bin).
  • Updated the LD_LIBRARY_PATH to include either lib or lib64 directories from the new Open MPI location, depending on which exists.
  • Enhanced the module to prepend MANPATH and PKG_CONFIG_PATH with the appropriate Open MPI directories if they exist, improving usability for developers.Added environment variables and paths for Open MPI relocation.

Added environment variables and paths for Open MPI relocation.
@rbeucher rbeucher merged commit c9aebbc into main Dec 16, 2025
3 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant