From 527ebafd0a16540ca59d3692ce457f978cd2cfa1dc4aeaa4af3bc0ed3d3c161c Mon Sep 17 00:00:00 2001 From: Nicolas Morey Date: Sun, 9 Nov 2025 00:35:19 +0100 Subject: [PATCH 1/2] Speed up testsuite by not rebuilding mvpich3 completely Signed-off-by: Nicolas Morey --- mvapich3.changes | 5 +++++ mvapich3.spec | 26 +++++++++++++++++--------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/mvapich3.changes b/mvapich3.changes index a5040c5..63a3a52 100644 --- a/mvapich3.changes +++ b/mvapich3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 8 23:34:58 UTC 2025 - Nicolas Morey + +- Speed up testsuite by not rebuilding mvpich3 completely + ------------------------------------------------------------------- Fri Jul 11 08:16:51 UTC 2025 - Nicolas Morey diff --git a/mvapich3.spec b/mvapich3.spec index 6edbfd1..bc0b45f 100644 --- a/mvapich3.spec +++ b/mvapich3.spec @@ -123,6 +123,10 @@ ExcludeArch: %ix86 %arm %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 and MPI-2 features. It is based on MPICH3 and MVICH. @@ -206,21 +210,25 @@ export CFLAGS="-std=gnu17 $CFLAGS" --with-device=ch4:ucx \ %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 mvapich3 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/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 \ -- 2.51.1 From 7cf27d0ca86833e0ec0d5dbaa46b8ebc3e7fb8925c00cfee3d90b32b54512e0b Mon Sep 17 00:00:00 2001 From: Nicolas Morey Date: Sun, 9 Nov 2025 00:51:36 +0100 Subject: [PATCH 2/2] Fix CFLAGS/FFLAGS Signed-off-by: Nicolas Morey --- mvapich3.changes | 1 + mvapich3.spec | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mvapich3.changes b/mvapich3.changes index 63a3a52..25dadbc 100644 --- a/mvapich3.changes +++ b/mvapich3.changes @@ -2,6 +2,7 @@ Sat Nov 8 23:34:58 UTC 2025 - Nicolas Morey - Speed up testsuite by not rebuilding mvpich3 completely +- Fix CFLAGS/FFLAGS ------------------------------------------------------------------- Fri Jul 11 08:16:51 UTC 2025 - Nicolas Morey diff --git a/mvapich3.spec b/mvapich3.spec index bc0b45f..b24e2f0 100644 --- a/mvapich3.spec +++ b/mvapich3.spec @@ -178,8 +178,8 @@ 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 ./autogen.sh --without-ucx --without-ofi --without-json -- 2.51.1