SHA256
6
0
forked from pool/mpich

WIP: Minor fixes #3

Closed
NMorey wants to merge 2 commits from NMorey/mpich:main into main
2 changed files with 22 additions and 14 deletions

View File

@@ -5,6 +5,8 @@ Tue Nov 4 17:54:18 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>
- Rename standard multibuild flavor to ucx for more clarity
- Add ch4-shm-fix-data-type-for-recv_bytes-in-MPIDI_POSIX_mpi_release_gather_release.patch
to fix a datatype issue on s390x
- Speed up testsuite by not rebuilding mpich completely
- Fix random configure failure on aarch64
-------------------------------------------------------------------
Tue Oct 28 17:54:04 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>

View File

@@ -191,7 +191,11 @@ rm -R modules/{ucx,libfabric,json-c}
export FFLAGS="-fallow-argument-mismatch $FFLAGS"
export FCFLAGS="-fallow-argument-mismatch $FCFLAGS"
%endif
%ifarch aarch64
# For some reason, configure has random issue with defining this
# on aarch64 only. Set it to avoid random failure
export CROSS_F77_SIZEOF_INTEGER=4
%endif
autoreconf -fi
%configure \
--prefix=%{p_prefix} \
@@ -220,6 +224,21 @@ autoreconf -fi
MPICHLIB_CFLAGS="%{optflags}" \
MPICHLIB_CXXFLAGS="%{optflags}"
%if 0%{?testsuite}
# Remove everything from testsuite package
# It is all contained by mpich 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/mpi/romio/test; do
(
cd $dir && make check
)
%else
make %{?_smp_mflags} VERBOSE=1
%install
@@ -253,19 +272,6 @@ find %{buildroot} -name "*.a" -delete
%fdupes %{buildroot}%{p_datadir}
%fdupes %{buildroot}%{p_libdir}/pkgconfig
%if 0%{?testsuite}
# Remove everything from testsuite package
# It is all contained by mpich 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
make check
%else
# make and install mpivars files
install -m 0755 -d %{buildroot}%{_bindir}
sed -e 's,prefix,%p_prefix,g' -e 's,libdir,%{p_libdir},g' %{S:1} > %{buildroot}%{p_bindir}/mpivars.sh