-
Notifications
You must be signed in to change notification settings - Fork 207
Update RDMA Core, OFI, UCX, and Open MPI, add MPICH [15.0.x] #9824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
cmsbuild
merged 9 commits into
cms-sw:IB/CMSSW_15_0_X/master
from
fwyzard:IB/CMSSW_15_0_X/master_openmpi_updates
Jul 7, 2025
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
66f608f
Update RDMA Core Userspace Libraries to version 57.0
fwyzard 9292dd2
RDMA Core: make libibverbs plugins relocatable
fwyzard 78abc37
Add Libfabric OpenFabrics version 2.1.0
fwyzard 777bae3
Update UCX to version 1.18.1
fwyzard e48f93e
Update OpenMPI to version 4.1.8
fwyzard 5c8b05f
OpenMPI: enable support for libfabric OFI
fwyzard 75f2b20
OpenMPI: update to the v4.1.x branch as of 2025.05.5
fwyzard a667c00
Add a generic MPI tool, with default to Open MPI 4.1
fwyzard 6d8d6c5
Add MPICH version v4.3.0
fwyzard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| %define skipreqtools jcompiler icc-cxxcompiler icc-ccompiler icc-f77compiler rivet2 opencl opencl-cpp intel-vtune icx-cxxcompiler icx-ccompiler icx-f77compiler | ||
| %define skipreqtools jcompiler icc-cxxcompiler icc-ccompiler icc-f77compiler rivet2 opencl opencl-cpp intel-vtune icx-cxxcompiler icx-ccompiler icx-f77compiler mpich |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| ### RPM external libfabric 2.1.0 | ||
| Source: https://github.com/ofiwg/%{n}/releases/download/v%{realversion}/%{n}-%{realversion}.tar.bz2 | ||
| %{!?without_cuda:Requires: cuda gdrcopy} | ||
| %{!?without_rocm:Requires: rocm} | ||
| Requires: curl | ||
| Requires: numactl | ||
| Requires: rdma-core | ||
| Requires: xpmem | ||
|
|
||
| %prep | ||
| %setup -q -n %{n}-%{realversion} | ||
|
|
||
| # regenerate the configure files and Makefiles | ||
| ./autogen.sh | ||
|
|
||
| ./configure \ | ||
| --prefix=%i \ | ||
| --disable-dependency-tracking \ | ||
| --disable-debug \ | ||
| --disable-profile \ | ||
| --disable-asan \ | ||
| --disable-lsan \ | ||
| --disable-tsan \ | ||
| --disable-ubsan \ | ||
| --enable-shared \ | ||
| --disable-static \ | ||
| --enable-shm \ | ||
| --enable-sm2 \ | ||
| --enable-xpmem=$XPMEM_ROOT \ | ||
| --disable-sockets \ | ||
| --enable-tcp \ | ||
| --enable-udp \ | ||
| --enable-verbs=$RDMA_CORE_ROOT \ | ||
| --disable-opx \ | ||
| --disable-psm2 \ | ||
| --disable-psm3 \ | ||
| --disable-usnic \ | ||
| --disable-efa \ | ||
| --disable-cxi \ | ||
| --disable-mrail \ | ||
| --disable-lpp \ | ||
| --disable-ucx \ | ||
| --enable-rxm \ | ||
| --enable-lnx \ | ||
| %if 0%{!?without_cuda:1} | ||
| --enable-cuda-dlopen \ | ||
| --enable-gdrcopy-dlopen \ | ||
| --with-cuda=$CUDA_ROOT \ | ||
| --with-gdrcopy=$GDRCOPY_ROOT \ | ||
| %else | ||
| --disable-cuda-dlopen \ | ||
| --disable-gdrcopy-dlopen \ | ||
| --without-cuda \ | ||
| --without-gdrcopy \ | ||
| %endif | ||
| %if 0%{!?without_rocm:1} | ||
| --enable-rocr-dlopen \ | ||
| --with-rocr=$ROCM_ROOT \ | ||
| %else | ||
| --disable-rocr-dlopen \ | ||
| --without-rocr \ | ||
| %endif | ||
| --disable-ze-dlopen \ | ||
| --without-ze \ | ||
| --with-pic \ | ||
| --with-dlopen \ | ||
| --with-gnu-ld \ | ||
| --with-curl=DIR \ | ||
| --with-numa=$NUMACTL_ROOT | ||
|
|
||
| # CFLAGS="-Wno-error=array-bounds" | ||
|
|
||
| %build | ||
| make %{makeprocesses} | ||
|
|
||
| %install | ||
| make install | ||
|
|
||
| %post |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| ### RPM external mpi 1.0 | ||
| Requires: openmpi | ||
|
|
||
| %prep | ||
|
|
||
| %build | ||
|
|
||
| %install | ||
|
|
||
| %post |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| ### RPM external mpich v4.3.0 | ||
| ## INCLUDE cuda-flags | ||
| ## INCLUDE rocm-flags | ||
| %define branch 4.3.x | ||
| %define tag %{realversion} | ||
| Source: git+https://github.com/pmodels/mpich.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&submodules=1&output=/%{n}-%{realversion}.tgz | ||
| BuildRequires: autotools | ||
| %{!?without_cuda:Requires: cuda} | ||
| %{!?without_rocm:Requires: rocm} | ||
| Requires: libfabric | ||
| Requires: ucx | ||
| Requires: hwloc | ||
| Requires: xpmem | ||
|
|
||
| # external libraries are needed for additional protocols: | ||
| # --with-hcoll: Mellanox Hierarchical Collectives | ||
| # --with-pmix: PMIx Reference Library (OpenPMIx) | ||
| # etc. | ||
|
|
||
| %prep | ||
| %setup -q -n %{n}-%{realversion} | ||
|
|
||
| # remove the submodules we do not want to use | ||
| rm -rf modules/hwloc | ||
| sed -e's/do_hwloc=.*/do_hwloc=no/' -i autogen.sh | ||
|
|
||
| rm -rf modules/libfabric | ||
| sed -e's/do_ofi=.*/do_ofi=no/' -i autogen.sh | ||
|
|
||
| rm -rf modules/ucx | ||
| sed -e's/do_ucx=.*/do_ucx=no/' -i autogen.sh | ||
|
|
||
| ./autogen.sh | ||
|
|
||
| # MPICH communication device: | ||
| # --with-device=ch4:ofi | ||
| # should work for TCP networks and any high-bandwidth interconnect supported by libfabric. | ||
| # --with-device=ch4:ucx | ||
| # should work for TCP networks and any high-bandwidth interconnect supported by the UCX library. | ||
| # --with-device=ch3 | ||
| # the legacy device ch3 | ||
|
|
||
| # MPICH multi-threading support: | ||
| # --enable-thread-cs={default, global, per-vci, lock-free} | ||
| # Default is global for ch3 and per-vci for ch4 | ||
| # --enable-ch4-vci-method={default, zero, communicator, tag, implicit, explicit} | ||
| # --enable-ch4-mt={direct, lockless, runtime} | ||
| # direct - Each thread directly accesses lower-level fabric (default) | ||
| # lockless - Use the thread safe serialization model supported by the provider | ||
| # runtime - Determine the model at runtime through a CVAR | ||
|
|
||
| # Note: using --enable-fast=O2,ndebug,alwaysinline,sse2 the compilation hangs (or takes a very long time to complete). | ||
|
|
||
| ./configure \ | ||
| --prefix=%i \ | ||
| --enable-error-checking=all \ | ||
| --enable-tag-error-bits=yes \ | ||
| --enable-fast=O2,ndebug,sse2 \ | ||
| --enable-cxx \ | ||
| --enable-romio \ | ||
| --disable-mpi-abi \ | ||
| --enable-versioning \ | ||
| --enable-threads=multiple \ | ||
| --enable-thread-cs=default \ | ||
| --disable-dependency-tracking \ | ||
| --disable-silent-rules \ | ||
| --disable-maintainer-mode \ | ||
| --enable-shared \ | ||
| --disable-static \ | ||
| --enable-nemesis-shm-collectives \ | ||
| %if 0%{!?without_cuda:1} | ||
| --with-cuda=$CUDA_ROOT \ | ||
| --with-cuda-sm=%(echo %{cuda_arch} | sed -e's/ \+/,/g') \ | ||
| %else | ||
| --without-cuda \ | ||
| %endif | ||
| %if 0%{!?without_rocm:1} | ||
| --with-hip=$ROCM_ROOT \ | ||
| --with-hip-sm=%(echo %{rocm_archs} | sed -e's/ \+/,/g') \ | ||
| %else | ||
| --without-hip \ | ||
| %endif | ||
| --without-ze \ | ||
| --with-pic \ | ||
| --with-gnu-ld \ | ||
| --with-libfabric=$LIBFABRIC_ROOT \ | ||
| --with-ucx=$UCX_ROOT \ | ||
| --with-hwloc=$HWLOC_ROOT \ | ||
| --without-netloc \ | ||
| --with-xpmem=$XPMEM_ROOT \ | ||
| --with-yaksa=embedded \ | ||
| --with-device=ch4:ofi | ||
|
|
||
| %build | ||
| make %{makeprocesses} V=1 | ||
|
|
||
| %install | ||
| make install | ||
|
|
||
| %post | ||
| %{relocateConfig}bin/mpicc | ||
| %{relocateConfig}bin/mpicxx | ||
| %{relocateConfig}bin/mpifort |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| diff --git a/libibverbs/dynamic_driver.c b/libibverbs/dynamic_driver.c | ||
| index 7fa4233..c2ff2bb 100644 | ||
| --- a/libibverbs/dynamic_driver.c | ||
| +++ b/libibverbs/dynamic_driver.c | ||
| @@ -115,27 +115,33 @@ static void read_config_file(const char *path) | ||
|
|
||
| static void read_config(void) | ||
| { | ||
| + char *verbs_config_dir; | ||
| DIR *conf_dir; | ||
| struct dirent *dent; | ||
| char *path; | ||
|
|
||
| - conf_dir = opendir(IBV_CONFIG_DIR); | ||
| + verbs_config_dir = getenv("VERBS_CONFIG_DIR"); | ||
| + if (!verbs_config_dir) { | ||
| + verbs_config_dir = IBV_CONFIG_DIR; | ||
| + } | ||
| + | ||
| + conf_dir = opendir(verbs_config_dir); | ||
| if (!conf_dir) { | ||
| fprintf(stderr, | ||
| PFX "Warning: couldn't open config directory '%s'.\n", | ||
| - IBV_CONFIG_DIR); | ||
| + verbs_config_dir); | ||
| return; | ||
| } | ||
|
|
||
| while ((dent = readdir(conf_dir))) { | ||
| struct stat buf; | ||
|
|
||
| - if (asprintf(&path, "%s/%s", IBV_CONFIG_DIR, dent->d_name) < | ||
| + if (asprintf(&path, "%s/%s", verbs_config_dir, dent->d_name) < | ||
| 0) { | ||
| fprintf(stderr, | ||
| PFX | ||
| "Warning: couldn't read config file %s/%s.\n", | ||
| - IBV_CONFIG_DIR, dent->d_name); | ||
| + verbs_config_dir, dent->d_name); | ||
| goto out; | ||
| } | ||
|
|
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <tool name="libfabric" version="@TOOL_VERSION@" revision="1"> | ||
| <lib name="fabric"/> | ||
| <client> | ||
| <environment name="LIBFABRIC_BASE" default="@TOOL_ROOT@"/> | ||
| <environment name="LIBDIR" default="$LIBFABRIC_BASE/lib"/> | ||
| <environment name="INCLUDE" default="$LIBFABRIC_BASE/include"/> | ||
| </client> | ||
| </tool> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <tool name="mpi" version="@TOOL_VERSION@" revision="1"> | ||
| <use name="openmpi"/> | ||
| </tool> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <tool name="mpich" version="@TOOL_VERSION@" revision="1"> | ||
| <lib name="mpi"/> | ||
| <lib name="mpicxx"/> | ||
| <client> | ||
| <environment name="MPICH_BASE" default="@TOOL_ROOT@"/> | ||
| <environment name="LIBDIR" default="$MPICH_BASE/lib"/> | ||
| <environment name="INCLUDE" default="$MPICH_BASE/include"/> | ||
| </client> | ||
| <runtime name="PATH" value="$MPICH_BASE/bin" type="path"/> | ||
| </tool> |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.