diff --git a/0001-Drop-real128.patch b/0001-Drop-real128.patch new file mode 100644 index 0000000000000000000000000000000000000000..355bd8743a08ced01fd2fbe0002da01f3c10233b --- /dev/null +++ b/0001-Drop-real128.patch @@ -0,0 +1,74 @@ +From 8f0c71281b5dccd70a3f1d4204e3cc6bc7201ceb Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= + +Date: Wed, 28 Aug 2019 10:57:55 +0000 +Subject: [PATCH] Drop real128 + +https://github.com/pmodels/mpich/issues/4005 +--- + .../fortran/use_mpi_f08/mpi_f08_types.f90 | 24 ------------------- + 1 file changed, 24 deletions(-) + +diff --git a/src/binding/fortran/use_mpi_f08/mpi_f08_types.f90 b/src/binding/fortran/use_mpi_f08/mpi_f08_types.f90 +index f8b0fa811..46bdf6972 100644 +--- a/src/binding/fortran/use_mpi_f08/mpi_f08_types.f90 ++++ b/src/binding/fortran/use_mpi_f08/mpi_f08_types.f90 +@@ -248,10 +248,8 @@ interface MPI_Sizeof + module procedure MPI_Sizeof_xint64 + module procedure MPI_Sizeof_xreal32 + module procedure MPI_Sizeof_xreal64 +- module procedure MPI_Sizeof_xreal128 + module procedure MPI_Sizeof_xcomplex32 + module procedure MPI_Sizeof_xcomplex64 +- module procedure MPI_Sizeof_xcomplex128 + end interface + + private :: MPI_Sizeof_character +@@ -263,10 +261,8 @@ private :: MPI_Sizeof_xint32 + private :: MPI_Sizeof_xint64 + private :: MPI_Sizeof_xreal32 + private :: MPI_Sizeof_xreal64 +-private :: MPI_Sizeof_xreal128 + private :: MPI_Sizeof_xcomplex32 + private :: MPI_Sizeof_xcomplex64 +-private :: MPI_Sizeof_xcomplex128 + + contains + +@@ -350,16 +346,6 @@ subroutine MPI_Sizeof_xreal64 (x, size, ierror) + ierror = 0 + end subroutine MPI_Sizeof_xreal64 + +-subroutine MPI_Sizeof_xreal128 (x, size, ierror) +- use,intrinsic :: iso_fortran_env, only: real128 +- real(real128),dimension(..) :: x +- integer, intent(out) :: size +- integer, optional, intent(out) :: ierror +- +- size = storage_size(x)/8 +- ierror = 0 +-end subroutine MPI_Sizeof_xreal128 +- + subroutine MPI_Sizeof_xcomplex32 (x, size, ierror) + use,intrinsic :: iso_fortran_env, only: real32 + complex(real32),dimension(..) :: x +@@ -380,16 +366,6 @@ subroutine MPI_Sizeof_xcomplex64 (x, size, ierror) + ierror = 0 + end subroutine MPI_Sizeof_xcomplex64 + +-subroutine MPI_Sizeof_xcomplex128 (x, size, ierror) +- use,intrinsic :: iso_fortran_env, only: real128 +- complex(real128),dimension(..) :: x +- integer, intent(out) :: size +- integer, optional, intent(out) :: ierror +- +- size = storage_size(x)/8 +- ierror = 0 +-end subroutine MPI_Sizeof_xcomplex128 +- + subroutine MPI_Status_f2f08(f_status, f08_status, ierror) + integer, intent(in) :: f_status(MPI_STATUS_SIZE) + type(MPI_Status), intent(out) :: f08_status +-- +2.21.0 + diff --git a/mpich-4.2.2.tar.gz b/mpich-4.2.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a97a1344eb9cbae052194ee5cee1e359c021934a Binary files /dev/null and b/mpich-4.2.2.tar.gz differ diff --git a/mpich.pth.py2 b/mpich.pth.py2 new file mode 100644 index 0000000000000000000000000000000000000000..a2dc353f69200bb12814fbf7c2b1edde186c9205 --- /dev/null +++ b/mpich.pth.py2 @@ -0,0 +1 @@ +import sys, os; s = os.getenv('MPI_PYTHON2_SITEARCH'); s and (s in sys.path or sys.path.append(s)) diff --git a/mpich.spec b/mpich.spec index 78010123ade489280ed3b7ade1d242c27f663fa2..f9c51e1e3fc8331a4892659d3ec4d5e70476f21e 100644 --- a/mpich.spec +++ b/mpich.spec @@ -1,15 +1,17 @@ -%define anolis_release 2 +%define anolis_release 1 Summary: A high-performance implementation of MPI Name: mpich -Version: 4.1.2 +Version: 4.2.2 Release: %{anolis_release}%{?dist} License: mpich2 URL: https://www.mpich.org/ +Source0: https://www.mpich.org/static/downloads/4.2.2/mpich-4.2.2.tar.gz +Source1: mpich.macros +Source2: mpich.pth.py2 +Source3: mpich.pth.py3 -Source0: https://www.mpich.org/static/downloads/%{version}/%{name}-%{version}.tar.gz -Source1: mpich.macros -Source3: mpich.pth.py3 +Patch1: 0001-Drop-real128.patch Patch: 0001-pkgconf-remove-optimization-and-link-flags-from-pkgc.patch Patch: 0002-pkgconf-also-drop-rpath-flags-from-pkgconf-file.patch @@ -257,6 +259,10 @@ make check VERBOSE=1 \ %{python3_sitearch}/%{name}.pth %changelog +* Mon Oct 27 2025 wenyuzifang - 4.2.2-1 +- Updated to version 4.2.2 to fix xxxxxx +- Improve code portability and stability by removing unsupported real128 and complex128 types from Fortran 2008 bindings + * Wed Mar 26 2025 Wenlong Zhang - 4.1.2-2 - ignored the test results on loongarch64