Compare commits

..

No commits in common. "8f8709fce9dc5ab6e9f41009baf09be12af2866e" and "c1ef045b600928c9f96479580f67fa9ceb97a8a3" have entirely different histories.

6 changed files with 48 additions and 91 deletions

View File

@ -0,0 +1,13 @@
diff --git mpich-3.2/./src/binding/cxx/mpicxx.h.in~ mpich-3.2/./src/binding/cxx/mpicxx.h.in
index 375c081e0e..24f1d6c2cc 100644
--- mpich-3.2/./src/binding/cxx/mpicxx.h.in~
+++ mpich-3.2/./src/binding/cxx/mpicxx.h.in
@@ -17,7 +17,7 @@
// between 3.2.3 and 3.4.3 (!!) Normally such changes
// should only occur at major releases (e.g., version 3 to 4)
#ifdef __GNUC__
-# if __GNUC__ >= @GNUCXX_VERSION@
+# if __GNUC__ >= @GNUCXX_VERSION@ && @GNUCXX_VERSION@ == 3
# if __GNUC_MINOR__ > 2 && @GNUCXX_MINORVERSION@ == 2
# error 'Please use the same version of GCC and g++ for compiling MPICH and user MPI programs'
# endif

View File

@ -0,0 +1,25 @@
From 8b755526b701806eeb688e1fd139e638602c67b6 Mon Sep 17 00:00:00 2001
From: baizg1107 <preloyalwhite@163.com>
Date: Fri, 17 Jun 2022 17:36:23 +0800
Subject: [PATCH] fix hwloc undeclared
---
src/pm/hydra/tools/topo/hwloc/topo_hwloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pm/hydra/tools/topo/hwloc/topo_hwloc.c b/src/pm/hydra/tools/topo/hwloc/topo_hwloc.c
index 8fff355..d33d15f 100644
--- a/src/pm/hydra/tools/topo/hwloc/topo_hwloc.c
+++ b/src/pm/hydra/tools/topo/hwloc/topo_hwloc.c
@@ -428,7 +428,7 @@ HYD_status HYDT_topo_hwloc_init(const char *binding, const char *mapping, const
HYDT_topo_hwloc_info.membind = HWLOC_MEMBIND_INTERLEAVE;
}
else if (!strncmp(membind, "replicate:", strlen("replicate:"))) {
- HYDT_topo_hwloc_info.membind = HWLOC_MEMBIND_REPLICATE;
+ HYDT_topo_hwloc_info.membind = HWLOC_MEMBIND_MIGRATE;
}
else {
HYDU_ERR_SETANDJUMP(status, HYD_INTERNAL_ERROR,
--
2.27.0

BIN
mpich-3.2.1.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,19 +1,17 @@
Summary: A high-performance implementation of MPI
Name: mpich
Version: 4.0.3
Release: 5
Version: 3.2.1
Release: 14
License: MIT
URL: http://www.mpich.org/
Source0: http://www.mpich.org/static/downloads/%{version}/mpich-%{version}.tar.gz
Source1: mpich.macros
Source2: mpich.pth.py3
Patch0: mpich-modules.patch
Patch1: remove_json_c_conflict_glibc.patch
Patch3: 0003-soften-version-check.patch
Patch4: fix-hwloc-undeclared.patch
BuildRequires: gcc gcc-c++ gcc-gfortran hwloc-devel >= 1.8
%ifarch "%{valgrind_arches}"
BuildRequires: valgrind-devel
%endif
BuildRequires: gcc gcc-c++ gcc-gfortran hwloc-devel >= 1.8 valgrind-devel
BuildRequires: python3-devel automake
Provides: mpi
Provides: mpich2 = %{version}
@ -69,7 +67,7 @@ mpich support for Python 3.
%{!?opt_fc_fflags: %global opt_fc_fflags %{optflags}}
%{!?opt_f77_fflags: %global opt_f77_fflags %{optflags}}
%ifarch aarch64 loongarch64 riscv64
%ifarch aarch64
%global m_option ""
%else
%global m_option -m64
@ -88,7 +86,6 @@ mpich support for Python 3.
--enable-lib-depend \
--disable-rpath \
--disable-silent-rules \
--enable-fortran \
--enable-fc \
--with-device=%{selected_channels} \
--with-pm=hydra:gforker \
@ -104,7 +101,7 @@ mpich support for Python 3.
F77=%{opt_f77} \
CFLAGS="%{m_option} -O2 %{?XFLAGS}" \
CXXFLAGS="%{m_option} -O2 %{?XFLAGS}" \
FCFLAGS="%{m_option} -O2 %{?XFLAGS} -fallow-argument-mismatch" \
FCFLAGS="%{m_option} -O2 %{?XFLAGS}" \
FFLAGS="%{m_option} -O2 %{?XFLAGS} -fallow-argument-mismatch" \
LDFLAGS='-Wl,-z,noexecstack' \
MPICHLIB_CFLAGS="%{?opt_cc_cflags}" \
@ -132,7 +129,6 @@ mkdir -p %{buildroot}%{_fmoddir}/mpich
mv %{buildroot}%{_includedir}/mpich-*/*.mod %{buildroot}%{_fmoddir}/mpich/
sed -r -i 's|^modincdir=.*|modincdir=%{_fmoddir}/mpich|' %{buildroot}%{_libdir}/mpich/bin/mpifort
mkdir -p %{buildroot}%{_sysconfdir}/modulefiles/mpi
sed -r 's|%{_bindir}|%{_libdir}/mpich/bin|;
s|@LIBDIR@|%{_libdir}/mpich|;
@ -198,27 +194,15 @@ make check V=1
%files help
%dir %{_datadir}/mpich
%{_datadir}/mpich/doc/
%dir %{_mandir}/mpich-%{_arch}
%{_mandir}/mpich-%{_arch}/man1/
%{_mandir}/mpich-%{_arch}/man3/
%files -n python3-mpich
%dir %{python3_sitearch}/mpich
%{python3_sitearch}/mpich.pth
%changelog
* Sun Apr 28 2024 yinsist <jianhui.oerv@isrc.iscas.ac.cn> - 4.0.3-5
- Valgrind does not support certain architectures like RISC-V, Before depending on Valgrind, first check if Valgrind supports the architecture
* Thu Jul 27 2023 misaka00251 <liuxin@iscas.ac.cn> - 4.0.3-4
- Fix build error on riscv64
* Tue May 23 2023 huajingyun <huajingyun@loongson.cn> - 4.0.3-3
- Fix build error on loongarch64
* Mon Feb 06 2023 wulei <wulei80@h-partners.com> - 4.0.3-2
- Add /usr/lib64/mpich/bin/mpif77 /usr/lib64/mpich/bin/mpif90 /usr/lib64/mpich/bin/mpifort
* Sat Nov 12 2022 hua <dchang@zhixundn.com> 4.0.3-1
- update to 4.0.3
* Fri Jun 17 2022 baizhonggui <baizhonggui@h-partners.com> - 3.2.1-14
- Fix hwloc undeclared

View File

@ -1,65 +0,0 @@
diff -ruN mpich/modules/json-c/CMakeLists.txt mpich-4.0.3/modules/json-c/CMakeLists.txt
--- mpich/modules/json-c/CMakeLists.txt 2023-01-18 10:35:56.712610706 +0800
+++ mpich-4.0.3/modules/json-c/CMakeLists.txt 2023-01-18 10:39:25.377219492 +0800
@@ -30,7 +30,6 @@
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING AND
(NOT MSVC OR NOT (MSVC_VERSION LESS 1800)) # Tests need at least VS2013
)
-add_subdirectory(tests)
endif()
# Set some packaging variables.
diff -ruN mpich/modules/json-c/configure.ac mpich-4.0.3/modules/json-c/configure.ac
--- mpich/modules/json-c/configure.ac 2023-01-18 10:35:56.723610563 +0800
+++ mpich-4.0.3/modules/json-c/configure.ac 2023-01-18 10:39:29.171175850 +0800
@@ -215,7 +215,6 @@
AC_CONFIG_FILES([
Makefile
json-c.pc
-tests/Makefile
json-c-uninstalled.pc
])
diff -ruN mpich/modules/json-c/Makefile.am mpich-4.0.3/modules/json-c/Makefile.am
--- mpich/modules/json-c/Makefile.am 2023-01-18 10:35:56.723610563 +0800
+++ mpich-4.0.3/modules/json-c/Makefile.am 2023-01-18 10:39:34.581113611 +0800
@@ -10,7 +10,7 @@
chmod -R u+w "$(distdir)/doc"
cd "$(distdir)" && doxygen
-SUBDIRS = . tests
+SUBDIRS = .
if EMBEDDED_BUILD
noinst_LTLIBRARIES = libjson-c.la
@@ -98,8 +98,7 @@
install-sh \
ltmain.sh \
missing \
- test-driver \
- tests/Makefile.in
+ test-driver
JSON_CLEANFILES+= \
libtool \
stamp-h1 \
diff -ruN mpich/modules/json-c/Makefile.in mpich-4.0.3/modules/json-c/Makefile.in
--- mpich/modules/json-c/Makefile.in 2023-01-18 10:35:56.723610563 +0800
+++ mpich-4.0.3/modules/json-c/Makefile.in 2023-01-18 10:39:35.348104790 +0800
@@ -416,7 +416,7 @@
ACLOCAL_AMFLAGS = -I autoconf-archive/m4
EXTRA_DIST = README.md README.html config.h.win32 Doxyfile \
issues_closed_for_0.13.md
-SUBDIRS = . tests
+SUBDIRS = .
@EMBEDDED_BUILD_TRUE@noinst_LTLIBRARIES = libjson-c.la
@EMBEDDED_BUILD_FALSE@lib_LTLIBRARIES = libjson-c.la
@@ -471,7 +471,7 @@
json_config.h
JSON_CLEANFILES = Makefile.in aclocal.m4 autom4te.cache/ compile \
config.guess config.h.in config.sub configure depcomp \
- install-sh ltmain.sh missing test-driver tests/Makefile.in \
+ install-sh ltmain.sh missing test-driver \
libtool stamp-h1 stamp-h2
ANDROID_CFLAGS = -I$(top_srcdir) -DHAVE_CONFIG_H
all: config.h json_config.h