-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See https://www.open-mpi.org/software/ompi/major-changes.php for major user-noticeable changes in the OpenMPI 4.1.x and 4.0.x series. See https://raw.githubusercontent.com/open-mpi/ompi/v4.1.x/NEWS for a detailed list of changes in the OpenMPI 4.1.x and 4.0.x series.
- Loading branch information
Showing
2 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 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,16 +1,45 @@ | ||
### RPM external openmpi 4.0.5 | ||
### RPM external openmpi 4.1.0 | ||
## INITENV SET OPAL_PREFIX %{i} | ||
Source: http://download.open-mpi.org/release/open-mpi/v4.0/%{n}-%{realversion}.tar.gz | ||
Source: https://download.open-mpi.org/release/open-mpi/v4.1/%{n}-%{realversion}.tar.bz2 | ||
BuildRequires: autotools | ||
Requires: zlib cuda hwloc ucx | ||
# external libraries are needed for additional protocols: | ||
# --with-ofi: Open Fabric Interface's libfabric | ||
# --with-mxm: Mellanox Messaging | ||
# --with-fca: Mellanox Fabric Collective Accelerator | ||
# --with-hcoll: Mellanox Hierarchical Collectives | ||
# --with-lsf: LSF job scheduler | ||
# --with-lustre: Lustre filesystem | ||
# etc. | ||
|
||
%prep | ||
%setup -q -n %{n}-%{realversion} | ||
|
||
./autogen.pl --force | ||
./configure --prefix=%i --without-lsf --disable-libnuma --enable-mpi-cxx --enable-mpi-thread-multiple | ||
./configure \ | ||
--prefix=%i \ | ||
--disable-dependency-tracking \ | ||
--enable-ipv6 \ | ||
--enable-mpi-cxx \ | ||
--enable-shared \ | ||
--disable-static \ | ||
--enable-cxx-exceptions \ | ||
--disable-mpi-java \ | ||
--enable-openib-rdmacm-ibaddr \ | ||
--with-zlib=$ZLIB_ROOT \ | ||
--with-cuda=$CUDA_ROOT \ | ||
--with-hwloc=$HWLOC_ROOT \ | ||
--with-ucx=$UCX_ROOT \ | ||
--without-x \ | ||
--with-pic \ | ||
--with-gnu-ld | ||
|
||
%build | ||
make %{makeprocesses} | ||
|
||
%install | ||
make install | ||
|
||
%post | ||
%{relocateConfig}lib/pmix/lib*.la | ||
%{relocateConfig}lib/openmpi/lib*.la | ||
%{relocateConfig}share/openmpi/*-wrapper-data.txt |