fix: fix lmod PATH env for openmpi-5.0.8#27
Merged
spetrosi merged 1 commit intolinux-system-roles:mainfrom Oct 7, 2025
Merged
Conversation
Attempting to gather UCX debug info fails in the openmpi-5.0.8-cuda12-gpu environment like so: $ ml mpi/openmpi-5.0.8-cuda12-gpu [azureuser@dgc-test-vm ~]$ ucx_info -d ucx_info: Symbol `ucs_global_opts' has different size in shared object, consider re-linking Segmentation fault (core dumped) $ This is caused by running the system ucx_info binary against the HPCX libraries in the LD_LIBRARY_PATH: [azureuser@dgc-test-vm ~]$ which ucx_info /usr/bin/ucx_info [azureuser@dgc-test-vm ~]$ ldd /usr/bin/ucx_info linux-vdso.so.1 (0x00007ffd73fbc000) libucp.so.0 => /opt/hpcx-v2.24.1-gcc-inbox-redhat9-cuda12-x86_64/ucx/hpcx-rebuild/lib/libucp.so.0 (0x00001537cbccd000) libuct.so.0 => /opt/hpcx-v2.24.1-gcc-inbox-redhat9-cuda12-x86_64/ucx/hpcx-rebuild/lib/libuct.so.0 (0x00001537cbc90000) libucs.so.0 => /opt/hpcx-v2.24.1-gcc-inbox-redhat9-cuda12-x86_64/ucx/hpcx-rebuild/lib/libucs.so.0 (0x00001537cbaea000) libc.so.6 => /lib64/libc.so.6 (0x00001537cb800000) libm.so.6 => /lib64/libm.so.6 (0x00001537cb725000) libucm.so.0 => /opt/hpcx-v2.24.1-gcc-inbox-redhat9-cuda12-x86_64/ucx/hpcx-rebuild/lib/libucm.so.0 (0x00001537cbac2000) libz.so.1 => /lib64/libz.so.1 (0x00001537cbaa8000) /lib64/ld-linux-x86-64.so.2 (0x00001537cbdc8000) Running the ucx_info binary from the ...ucx/hpcx-rebuild/bin/ directory orks correctly, as it was compiled against the HPCX libraries found via the LD_LIBARY_PATH. Update all the path environments so the correct HPCX directories are searched first, hence finding the correct binaries fbraries and package configs for the selected openmpi environment.
Reviewer's GuideRefactor the OpenMPI module file to introduce separate directory variables for OpenMPI and its HPCX components (UCX, UCC, HCOLL), and update all environment path and MPI_* variable assignments to ensure the correct binaries, libraries, and pkgconfigs are loaded first. Class diagram for updated environment variable assignments in OpenMPI moduleclassDiagram
class "OpenMPIEnvironment" {
+ompi_dir : string
+ucx_dir : string
+ucc_dir : string
+hcoll_dir : string
+PATH : string
+LD_LIBRARY_PATH : string
+PKG_LIBRARY_PATH : string
+MANPATH : string
+MPI_HOME : string
+MPI_BIN : string
+MPI_SYSCONFIG : string
+MPI_INCLUDE : string
+MPI_LIB : string
+MPI_MAN : string
+MPI_COMPILER : string
+MPI_SUFFIX : string
}
class "HPCXComponent" {
+ucx_dir : string
+ucc_dir : string
+hcoll_dir : string
}
"OpenMPIEnvironment" o-- "HPCXComponent" : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Collaborator
Author
|
[citest] |
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.
Attempting to gather UCX debug info fails in the
openmpi-5.0.8-cuda12-gpu environment like so:
$ ml mpi/openmpi-5.0.8-cuda12-gpu
[azureuser@dgc-test-vm ~]$ ucx_info -d
ucx_info: Symbol `ucs_global_opts' has different size in shared object, consider re-linking
Segmentation fault (core dumped)
$
This is caused by running the system ucx_info binary against the HPCX libraries in the LD_LIBRARY_PATH:
[azureuser@dgc-test-vm ~]$ which ucx_info
/usr/bin/ucx_info
[azureuser@dgc-test-vm ~]$ ldd /usr/bin/ucx_info
linux-vdso.so.1 (0x00007ffd73fbc000)
libucp.so.0 =>
/opt/hpcx-v2.24.1-gcc-inbox-redhat9-cuda12-x86_64/ucx/hpcx-rebuild/lib/libucp.so.0 (0x00001537cbccd000)
libuct.so.0 =>
/opt/hpcx-v2.24.1-gcc-inbox-redhat9-cuda12-x86_64/ucx/hpcx-rebuild/lib/libuct.so.0 (0x00001537cbc90000)
libucs.so.0 =>
/opt/hpcx-v2.24.1-gcc-inbox-redhat9-cuda12-x86_64/ucx/hpcx-rebuild/lib/libucs.so.0 (0x00001537cbaea000)
libc.so.6 => /lib64/libc.so.6 (0x00001537cb800000)
libm.so.6 => /lib64/libm.so.6 (0x00001537cb725000)
libucm.so.0 =>
/opt/hpcx-v2.24.1-gcc-inbox-redhat9-cuda12-x86_64/ucx/hpcx-rebuild/lib/libucm.so.0 (0x00001537cbac2000)
libz.so.1 => /lib64/libz.so.1 (0x00001537cbaa8000)
/lib64/ld-linux-x86-64.so.2 (0x00001537cbdc8000)
Running the ucx_info binary from the ...ucx/hpcx-rebuild/bin/ directory orks correctly, as it was compiled against the HPCX libraries found via the LD_LIBARY_PATH.
Update all the path environments so the correct HPCX directories are searched first, hence finding the correct binaries fbraries and package configs for the selected openmpi environment.
Enhancement:
Reason:
Result:
Issue Tracker Tickets (Jira or BZ if any):
Summary by Sourcery
Update the openmpi-5.0.8-cuda12-gpu modulefile to correctly prioritize HPCX binaries and libraries
Bug Fixes:
Enhancements: