SHA256
6
0
forked from pool/mvapich2

Minor fixes #1

Manually merged
HPC merged 3 commits from NMorey/mvapich2:main into main 2025-11-09 10:04:32 +01:00
2 changed files with 27 additions and 12 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Nov 4 20:31:05 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>
- Replace call to autogen.sh with autoreconf
- Speed up testsuite by not rebuilding mvpich2 completely
- Fix CFLAGS/FFLAGS
-------------------------------------------------------------------
Fri Jul 11 08:07:56 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>

View File

@@ -127,6 +127,10 @@ BuildRequires: libibmad-devel
%endif
Requires: mpi-selector
%if 0%{?testsuite}
BuildRequires: %package_name-devel = %{version}
%endif
%description
This is an MPI-3 implementation which includes all MPI-1 features. It
is based on MPICH2 and MVICH.
@@ -188,11 +192,11 @@ cp /usr/share/automake*/config.* .
# GCC10 needs an extra flag to allow badly passed parameters
%if 0%{?suse_version} > 1500
export FFLAGS="-fallow-argument-mismatch $FFLAGS"
export CFLAGS="-std=gnu17 $CFLAGS"
export FFLAGS="-fallow-argument-mismatch %{optflags}"
export CFLAGS="-std=gnu17 %{optflags}"
%endif
PERL_USE_UNSAFE_INC=1 ./autogen.sh
PERL_USE_UNSAFE_INC=1 autoreconf -fi
%configure \
--prefix=%{p_prefix} \
--exec-prefix=%{p_prefix} \
@@ -219,21 +223,25 @@ PERL_USE_UNSAFE_INC=1 ./autogen.sh
--disable-ibv-dlopen \
%endif
--without-mpe
make %{?_smp_mflags} V=1
%if 0%{?testsuite}
%check
make V=1 check
%endif
%install
%if 0%{?testsuite}
# Remove everything from testsuite package
# It is all contained by mvapich2 packages
rm -rf %{buildroot}/*
%check
# Disable CMA. Modern kernels require specific ptrace capabilities
# that are not available in OBS
export MPIR_CVAR_CH4_CMA_ENABLE=0
for dir in src/mpl src/openpa src/pm/hydra/mpl; do
(
cd $dir && make check
)
done
%else
make %{?_smp_mflags} V=1
%install
make DESTDIR=%{buildroot} V=1 install
rm -f %{buildroot}%{p_libdir}/libfmpich.la \