From b3c5ea22e900add0604f0e10d16cba8647082399 Mon Sep 17 00:00:00 2001 From: panchenbo Date: Tue, 22 Aug 2023 10:10:19 +0800 Subject: [PATCH] add loongarch64 and sw_64 support (cherry picked from commit 55d7f4c6de18f0fd81f4bfec1d462c215b30a5f9) --- mpich.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/mpich.spec b/mpich.spec index 703062c..e3a61b7 100644 --- a/mpich.spec +++ b/mpich.spec @@ -1,7 +1,7 @@ Summary: A high-performance implementation of MPI Name: mpich Version: 3.2.1 -Release: 14 +Release: 15 License: MIT URL: http://www.mpich.org/ Source0: http://www.mpich.org/static/downloads/%{version}/mpich-%{version}.tar.gz @@ -11,8 +11,13 @@ Patch0: mpich-modules.patch Patch3: 0003-soften-version-check.patch Patch4: fix-hwloc-undeclared.patch -BuildRequires: gcc gcc-c++ gcc-gfortran hwloc-devel >= 1.8 valgrind-devel +BuildRequires: gcc gcc-c++ gcc-gfortran hwloc-devel >= 1.8 BuildRequires: python3-devel automake + +%ifarch %valgrind_arches +BuildRequires: valgrind-devel +%endif + Provides: mpi Provides: mpich2 = %{version} Obsoletes: mpich2 < 3.0 @@ -67,7 +72,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 sw_64 loongarch64 %global m_option "" %else %global m_option -m64 @@ -203,6 +208,9 @@ make check V=1 %{python3_sitearch}/mpich.pth %changelog +* Tue Aug 22 2023 panchenbo - 3.2.1-15 +- add loongarch64 and sw_64 support + * Fri Jun 17 2022 baizhonggui - 3.2.1-14 - Fix hwloc undeclared -- Gitee