2ce31c
%global intel_mpi_bench_vers IMB-v2021.3
2ce31c
%global osu_micro_bench_vers 5.8
b5a282
Summary: MPI Benchmarks and tests
b5a282
Name: mpitests
2ce31c
Version: 5.8
2ce31c
Release: 1%{?dist}
b5a282
License: CPL and BSD
b5a282
Group: Applications/Engineering
b5a282
# These days we get the benchmark soucres from Intel and OSU directly
b5a282
# rather than from openfabrics.
b5a282
URL: http://www.openfabrics.org
b5a282
# https://software.intel.com/en-us/articles/intel-mpi-benchmarks
b5a282
Source0: https://github.com/intel/mpi-benchmarks/archive/%{intel_mpi_bench_vers}.tar.gz
c9a00b
Source1: http://mvapich.cse.ohio-state.edu/download/mvapich/osu-micro-benchmarks-%{osu_micro_bench_vers}.tgz
b5a282
# Only for old openmpi
b5a282
#Patch101: OMB-disable-collective-async.patch
b5a282
BuildRequires: hwloc-devel, libibmad-devel, rdma-core-devel
c25ff5
BuildRequires: automake, autoconf, libtool
2ce31c
BuildRequires: gcc, gcc-c++
b5a282
b5a282
%description
b5a282
A set of popular MPI benchmarks:
b5a282
Intel MPI benchmarks %{intel_mpi_bench_vers}.
b5a282
OSU micro-benchmarks %{osu_micro_bench_vers}.
b5a282
b5a282
# openmpi 3.0.0 dropped support for big endian ppc
b5a282
%ifnarch ppc ppc64
b5a282
%package openmpi
b5a282
Summary: MPI tests package compiled against openmpi
b5a282
Group: Applications
b5a282
BuildRequires: openmpi-devel >= 3.1.2-2
b5a282
Requires: openmpi%{?_isa}
b5a282
%description openmpi
b5a282
MPI test suite compiled against the openmpi package
b5a282
%endif
b5a282
b5a282
%package mpich
b5a282
Summary: MPI tests package compiled against mpich
b5a282
Group: Applications
b5a282
BuildRequires: mpich-devel >= 3.2.1-8
b5a282
Requires: mpich%{?_isa}
b5a282
%description mpich
b5a282
MPI test suite compiled against the mpich package
b5a282
b5a282
# mvapich2 is not yet built on s390(x)
b5a282
%ifnarch s390 s390x
b5a282
%package mvapich2
b5a282
Summary: MPI tests package compiled against mvapich2
b5a282
Group: Applications
b5a282
BuildRequires: mvapich2-devel >= 2.3-2
b5a282
Requires: mvapich2%{?_isa}
b5a282
%description mvapich2
b5a282
MPI test suite compiled against the mvapich2 package
b5a282
%endif
b5a282
b5a282
# PSM is x86_64-only
b5a282
%ifarch x86_64
b5a282
%package mvapich2-psm2
b5a282
Summary: MPI tests package compiled against mvapich2 using OmniPath
b5a282
Group: Applications
b5a282
BuildRequires: mvapich2-psm2-devel >= 2.3-2
b5a282
BuildRequires: libpsm2-devel
b5a282
Requires: mvapich2-psm2%{?_isa}
b5a282
%description mvapich2-psm2
b5a282
MPI test suite compiled against the mvapich2 package using OmniPath
b5a282
%endif
b5a282
b5a282
%prep
b5a282
%setup -c 
b5a282
%setup -T -D -a 1
2ce31c
cd osu-micro-benchmarks-5.8
b5a282
cd ..
b5a282
b5a282
%build
b5a282
# We don't do a non-mpi version of this package, just straight to the mpi builds
b5a282
export CC=mpicc
b5a282
export CXX=mpicxx
b5a282
export FC=mpif90
b5a282
export F77=mpif77
b5a282
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
b5a282
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
b5a282
do_build() {
b5a282
  mkdir build-$MPI_COMPILER
b5a282
  cp -al mpi-benchmarks-%{intel_mpi_bench_vers} osu-micro-benchmarks-%{osu_micro_bench_vers} build-$MPI_COMPILER
b5a282
  cd build-$MPI_COMPILER/mpi-benchmarks-%{intel_mpi_bench_vers}
b5a282
  make OPTFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" MPI_HOME="$MPI_HOME" all
b5a282
  cd ../osu-micro-benchmarks-%{osu_micro_bench_vers}
c25ff5
  autoreconf -vif
b5a282
  %configure
b5a282
  make %{?_smp_mflags}
b5a282
  cd ../..
b5a282
}
b5a282
b5a282
# do N builds, one for each mpi stack
b5a282
%ifnarch ppc ppc64
b5a282
%{_openmpi_load}
b5a282
do_build
b5a282
%{_openmpi_unload}
b5a282
%endif
b5a282
b5a282
%{_mpich_load}
b5a282
do_build
b5a282
%{_mpich_unload}
b5a282
b5a282
%ifnarch s390 s390x
b5a282
%{_mvapich2_load}
b5a282
do_build
b5a282
%{_mvapich2_unload}
b5a282
b5a282
%endif
b5a282
b5a282
%ifarch x86_64
b5a282
%{_mvapich2_psm2_load}
b5a282
do_build
b5a282
%{_mvapich2_psm2_unload}
b5a282
%endif
b5a282
b5a282
%install
b5a282
do_install() {
b5a282
  mkdir -p %{buildroot}$MPI_BIN
b5a282
  cd build-$MPI_COMPILER/osu-micro-benchmarks-%{osu_micro_bench_vers}
b5a282
  make install DESTDIR=%{buildroot}/staging
b5a282
  find %{buildroot}/staging -name 'osu_*' -type f -perm -111 | while read X; do
b5a282
    mv $X %{buildroot}$MPI_BIN/mpitests-$(basename $X)
b5a282
  done
b5a282
  cd ../mpi-benchmarks-%{intel_mpi_bench_vers}/
b5a282
  for X in IMB-*; do
b5a282
    cp $X %{buildroot}$MPI_BIN/mpitests-$X
b5a282
  done
b5a282
  cd ../..
b5a282
}
b5a282
b5a282
# do N installs, one for each mpi stack
b5a282
%ifnarch ppc ppc64
b5a282
%{_openmpi_load}
b5a282
do_install
b5a282
%{_openmpi_unload}
b5a282
%endif
b5a282
b5a282
%{_mpich_load}
b5a282
do_install
b5a282
%{_mpich_unload}
b5a282
b5a282
%ifnarch s390 s390x
b5a282
%{_mvapich2_load}
b5a282
do_install
b5a282
%{_mvapich2_unload}
b5a282
%endif
b5a282
b5a282
%ifarch x86_64
b5a282
%{_mvapich2_psm2_load}
b5a282
do_install
b5a282
%{_mvapich2_psm2_unload}
b5a282
%endif
b5a282
b5a282
%ifnarch ppc ppc64
b5a282
%files openmpi
b5a282
%{_libdir}/openmpi/bin/mpitests-*
b5a282
%endif
b5a282
b5a282
%files mpich
b5a282
%{_libdir}/mpich/bin/mpitests-*
b5a282
b5a282
%ifnarch s390 s390x
b5a282
%files mvapich2
b5a282
%{_libdir}/mvapich2/bin/mpitests-*
b5a282
%endif
b5a282
b5a282
%ifarch x86_64
b5a282
%files mvapich2-psm2
b5a282
%{_libdir}/mvapich2-psm2/bin/mpitests-*
b5a282
%endif
b5a282
b5a282
%changelog
2ce31c
* Fri Dec 10 2021 Honggang Li <honli@redhat.com> - 5.8-1
2ce31c
- Update OSU benchmarks to upstream release 5.8
2ce31c
- Update Intel MPI Benchmarks 2021.3
2ce31c
- Resolves: rhbz#2008517
2ce31c
c9a00b
* Thu May 13 2021 Honggang Li <honli@redhat.com> - 5.7-2
c9a00b
- Update OSU benchmarks to upstream release 5.7.1
c9a00b
- Update Intel MPI Benchmarks 2021.2
c9a00b
- Resolves: rhbz#1960078
c9a00b
c25ff5
* Tue Dec 22 2020 Honggang Li <honli@redhat.com> - 5.7-1
c25ff5
- Update OSU benchmarks to upstream release 5.7
c25ff5
- Resolves: rhbz#1909632
c25ff5
13481c
* Thu Oct 15 2020 Honggang Li <honli@redhat.com> - 5.6.3-1
13481c
- Update OSU benchmarks to upstream release 5.6.3
13481c
- Resolves: rhbz#1888568
13481c
b5a282
* Tue May 12 2020 Honggang Li <honli@redhat.com> - 5.6.2-1
b5a282
- Update OSU benchmarks to upstream release 5.6.2
b5a282
- Update IMB benchmarks to upstream release v2019.6
b5a282
- Resolves: rhbz#1817837
b5a282
b5a282
* Sat Sep 22 2018 Jarod Wilson <jarod@redhat.com> - 5.4.2-4
b5a282
- Properly fix build and linker flags, annocheck now silent
b5a282
- Resolves: rhbz#1624145
b5a282
b5a282
* Tue Sep 18 2018 Jarod Wilson <jarod@redhat.com> - 5.4.2-3
b5a282
- First wave of compiler flag usage fixups from annobin scans
b5a282
- Related: rhbz#1624145
b5a282
b5a282
* Thu Sep 13 2018 Jarod Wilson <jarod@redhat.com> - 5.4.2-2
b5a282
- Rebuild with updated openmpi, mvapich and mpich for proper deps
b5a282
- Resolves: rhbz#1628627
b5a282
b5a282
* Thu Aug 16 2018 Jarod Wilson <jarod@redhat.com> - 5.4.2-1
b5a282
- Initial build for RHEL8, based on latest RHEL7 package
b5a282
- Resolves: rhbz#1556959