Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
8f8709fce9
!37 first check if Valgrind supports the build architecture
From: @yinist 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2024-05-07 01:02:48 +00:00
Yinsist
622c4b1362 first check if Valgrind supports the architecture 2024-04-29 08:33:37 +00:00
openeuler-ci-bot
7d3b7f398c
!32 Fix build error on riscv64
From: @misaka00251 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2023-07-28 12:38:00 +00:00
misaka00251
6e4bbda1ef
Fix build error on riscv64
Signed-off-by: misaka00251 <liuxin@iscas.ac.cn>
2023-07-27 10:37:57 +00:00
openeuler-ci-bot
2cd42dabd3
!31 fix build error for loongarch64
From: @huajingyun 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-07-18 12:42:07 +00:00
Jingyun Hua
876d1e8180 Fix build error on loongarch64
Signed-off-by: Jingyun Hua <huajingyun@loongson.cn>
2023-05-23 03:32:06 +00:00
openeuler-ci-bot
404c7e8a36
!26 添加mpich升级删除的/usr/lib64/路径下的文件
From: @wu-leilei 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-02-06 08:55:49 +00:00
wu-leilei
95702cdee7 Add /usr/lib64/mpich/bin/mpif77 /usr/lib64/mpich/bin/mpif90 /usr/lib64/mpich/bin/mpifort 2023-02-06 15:48:09 +08:00
openeuler-ci-bot
1ca825dac2
!25 update version from 3.2.1 to 4.0.3
From: @dan1111 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-01-29 08:08:11 +00:00
dan
2300f2c83f update to 4.0.3 2023-01-18 12:00:07 +08:00
6 changed files with 91 additions and 48 deletions

View File

@ -1,13 +0,0 @@
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

@ -1,25 +0,0 @@
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

Binary file not shown.

BIN
mpich-4.0.3.tar.gz Normal file

Binary file not shown.

View File

@ -1,17 +1,19 @@
Summary: A high-performance implementation of MPI
Name: mpich
Version: 3.2.1
Release: 14
Version: 4.0.3
Release: 5
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
Patch3: 0003-soften-version-check.patch
Patch4: fix-hwloc-undeclared.patch
Patch1: remove_json_c_conflict_glibc.patch
BuildRequires: gcc gcc-c++ gcc-gfortran hwloc-devel >= 1.8 valgrind-devel
BuildRequires: gcc gcc-c++ gcc-gfortran hwloc-devel >= 1.8
%ifarch "%{valgrind_arches}"
BuildRequires: valgrind-devel
%endif
BuildRequires: python3-devel automake
Provides: mpi
Provides: mpich2 = %{version}
@ -67,7 +69,7 @@ mpich support for Python 3.
%{!?opt_fc_fflags: %global opt_fc_fflags %{optflags}}
%{!?opt_f77_fflags: %global opt_f77_fflags %{optflags}}
%ifarch aarch64
%ifarch aarch64 loongarch64 riscv64
%global m_option ""
%else
%global m_option -m64
@ -86,6 +88,7 @@ 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 \
@ -101,7 +104,7 @@ mpich support for Python 3.
F77=%{opt_f77} \
CFLAGS="%{m_option} -O2 %{?XFLAGS}" \
CXXFLAGS="%{m_option} -O2 %{?XFLAGS}" \
FCFLAGS="%{m_option} -O2 %{?XFLAGS}" \
FCFLAGS="%{m_option} -O2 %{?XFLAGS} -fallow-argument-mismatch" \
FFLAGS="%{m_option} -O2 %{?XFLAGS} -fallow-argument-mismatch" \
LDFLAGS='-Wl,-z,noexecstack' \
MPICHLIB_CFLAGS="%{?opt_cc_cflags}" \
@ -129,6 +132,7 @@ 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|;
@ -194,15 +198,27 @@ 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

@ -0,0 +1,65 @@
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