## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Summary: A high-performance implementation of MPI Name: mpich Version: 4.2.1 Release: %autorelease License: mpich2 URL: https://www.mpich.org/ Source0: https://www.mpich.org/static/downloads/%{version}/%{name}-%{version}.tar.gz Source1: mpich.macros Source3: mpich.pth.py3 Patch: 0001-pkgconf-remove-optimization-and-link-flags-from-pkgc.patch Patch: 0002-pkgconf-also-drop-rpath-flags-from-pkgconf-file.patch Patch: 0003-Drop-build-flags-e.g.-specs.-and-lto-from-mpi-wrappe.patch Patch: 0004-Make-mpich.module-useful.patch # TODO: submit ^ upstream Patch: mpich-configure-max_align_t.patch Patch: mpich-aclocal_cc-implicit-int.patch Patch: mpich-json-configure-__thread.patch BuildRequires: make BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: hwloc-devel >= 2.0 %if ! (0%{?rhel} >= 10) %ifarch x86_64 # BuildRequires: json-c-devel BuildRequires: libpsm2-devel %endif %endif BuildRequires: libfabric-devel BuildRequires: libnl3-devel BuildRequires: libuuid-devel BuildRequires: numactl-devel %ifarch aarch64 ppc64le x86_64 BuildRequires: ucx-devel %endif %if ! 0%{?rhel} BuildRequires: yaksa-devel %else Provides: bundled(yaksa) = 0.2 %endif # For ./maint/extractcvars BuildRequires: perl(lib) %ifarch %{valgrind_arches} BuildRequires: valgrind-devel %endif # For %%{python3_sitearch} BuildRequires: python3-devel BuildRequires: rpm-mpi-hooks Provides: mpi Provides: mpich2 = %{version} Obsoletes: mpich2 < 3.0 Requires: environment(modules) # Make sure this package is rebuilt with correct Python version when updating # Otherwise mpi.req from rpm-mpi-hooks doesn't work # https://bugzilla.redhat.com/show_bug.cgi?id=1705296 Requires: (python(abi) = %{python3_version} if python3) %description MPICH is a high-performance and widely portable implementation of the Message Passing Interface (MPI) standard (MPI-1, MPI-2 and MPI-3). The goals of MPICH are: (1) to provide an MPI implementation that efficiently supports different computation and communication platforms including commodity clusters (desktop systems, shared-memory systems, multicore architectures), high-speed networks (10 Gigabit Ethernet, InfiniBand, Myrinet, Quadrics) and proprietary high-end computing systems (Blue Gene, Cray) and (2) to enable cutting-edge research in MPI through an easy-to-extend modular framework for other derived implementations. The mpich binaries in this RPM packages were configured to use the default process manager (Hydra) using the default device (ch3). The ch3 device was configured with support for the nemesis channel that allows for shared-memory and TCP/IP sockets based communication. This build also include support for using the 'module environment' to select which MPI implementation to use when multiple implementations are installed. If you want MPICH support to be automatically loaded, you need to install the mpich-autoload package. %package autoload Summary: Load mpich automatically into profile Requires: mpich = %{version}-%{release} Provides: mpich2-autoload = 3.0.1 Obsoletes: mpich2-autoload < 3.0 %description autoload This package contains profile files that make mpich automatically loaded. %package devel Summary: Development files for mpich Provides: %{name}-devel-static = %{version}-%{release} Requires: %{name} = %{version}-%{release} Requires: pkgconfig Requires: gcc-gfortran Requires: rpm-mpi-hooks Requires: redhat-rpm-config Provides: mpich2-devel = 3.0.1 Obsoletes: mpich2-devel < 3.0 %description devel Contains development headers and libraries for mpich %package doc Summary: Documentations and examples for mpich BuildArch: noarch Requires: %{name}-devel = %{version}-%{release} Provides: mpich2-doc = 3.0.1 Obsoletes: mpich2-doc < 3.0 %description doc Contains documentations, examples and man-pages for mpich %package -n python3-mpich Summary: mpich support for Python 3 Requires: %{name} = %{version}-%{release} Requires: python(abi) = %{python3_version} %description -n python3-mpich mpich support for Python 3. %prep %autosetup -p1 %build ./autogen.sh CONFIGURE_OPTS=( --with-custom-version-string=%{version}-%{release} --enable-sharedlibs=gcc --enable-shared --enable-static=no --enable-lib-depend --disable-rpath --disable-silent-rules --disable-dependency-tracking --with-gnu-ld --with-pm=hydra:gforker --includedir=%{_includedir}/%{name}-%{_arch} --bindir=%{_libdir}/%{name}/bin --libdir=%{_libdir}/%{name}/lib --datadir=%{_datadir}/%{name} --mandir=%{_mandir}/%{name}-%{_arch} --docdir=%{_datadir}/%{name}/doc --htmldir=%{_datadir}/%{name}/doc --with-hwloc --with-libfabric %ifarch aarch64 ppc64le x86_64 --with-ucx %endif %if ! 0%{?rhel} --with-yaksa %endif ) # --with-device=ch3:nemesis # Set -fallow-argument-mismatch for #1795817 %configure "${CONFIGURE_OPTS[@]}" \ FFLAGS="$FFLAGS -fallow-argument-mismatch" \ FCFLAGS="$FCFLAGS -fallow-argument-mismatch" # Remove rpath sed -r -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -r -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool #Try and work around 'unused-direct-shlib-dependency' rpmlint warnning sed -i -e 's| -shared | -Wl,--as-needed\0|g' libtool %make_build VERBOSE=1 %install %make_install mkdir -p %{buildroot}%{_fmoddir}/%{name} mv %{buildroot}%{_includedir}/%{name}-*/*.mod %{buildroot}%{_fmoddir}/%{name}/ sed -r -i 's|^modincdir=.*|modincdir=%{_fmoddir}/%{name}|' %{buildroot}%{_libdir}/%{name}/bin/mpifort # Install the module file mkdir -p %{buildroot}%{_datadir}/modulefiles/mpi sed -r 's|%{_bindir}|%{_libdir}/%{name}/bin|; s|@LIBDIR@|%{_libdir}/%{name}|; s|@MPINAME@|%{name}|; s|@py2sitearch@|%{python2_sitearch}|; s|@py3sitearch@|%{python3_sitearch}|; s|@ARCH@|%{_arch}|; s|@fortranmoddir@|%{_fmoddir}|; ' \ %{buildroot}%{_datadir}/modulefiles/mpi/%{name}-%{_arch} mkdir -p %{buildroot}%{_sysconfdir}/profile.d cat >%{buildroot}%{_sysconfdir}/profile.d/mpich-%{_arch}.sh < - 4.2.1-2 - Remove parkill * Fri Apr 19 2024 Zbigniew Jędrzejewski-Szmek - 4.2.1-1 - Version 4.2.1 (rhbz#2249294) * Mon Mar 04 2024 David Abdurachmanov - 4.1.2-14 - Properly check valgrind arches * Mon Feb 12 2024 Cristian Le - 4.1.2-13 - Added CMAKE_PREFIX_PATH to the module file to unsure that CMake projects find the available MPI enabled packages, libraries, executables, etc. * Mon Jan 29 2024 Zbigniew Jędrzejewski-Szmek - 4.1.2-12 - Drop dependency on ftbfs infinipath-psm * Thu Jan 25 2024 Fedora Release Engineering - 4.1.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 4.1.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Nov 21 2023 Zbigniew Jędrzejewski-Szmek - 4.1.2-9 - Convert license tag to SPDX * Tue Oct 10 2023 Benson Muite - 4.1.2-8 - Own %%{_fmoddir}/mpich * Sat Sep 30 2023 Benson Muite - 4.1.2-7 - Create directories for MPICH package development files * Fri Sep 29 2023 Benson Muite - 4.1.2-6 - Mpich should own cmake and include install directories * Mon Jul 31 2023 Yaakov Selkowitz - 4.1.2-5 - Use bundled yaksa in RHEL builds * Mon Jul 31 2023 Zbigniew Jędrzejewski-Szmek - 4.1.2-3 - Use separate yaksa * Thu Jul 20 2023 Fedora Release Engineering - 4.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 18 2023 Zbigniew Jędrzejewski-Szmek - 4.1.2-1 - Version 4.1.2 (rhbz#2213689) * Mon Jul 10 2023 Yaakov Selkowitz - 4.1.1-3 - Disable PSM, PSM2 in ELN builds * Tue Jun 13 2023 Python Maint - 4.1.1-2 - Rebuilt for Python 3.12 * Sat May 20 2023 Zbigniew Jędrzejewski-Szmek - 4.1.1-1 - Version 4.4.1 (rhbz#2082757) * Sat May 20 2023 Orion Poplawski - 4.1-4 - Remove dependency libs from wrappers * Sat May 20 2023 Orion Poplawski - 4.1-2 - Use ucx only on supported arches * Sat May 20 2023 Orion Poplawski - 4.1-1 - Update to 4.1; Switch to default ch4:ofi device * Thu Mar 02 2023 Orion Poplawski - 4.0.3-1 - Update to 4.0.3 (https://www.mpich.org/2022/11/08/mpich-4-0-3-released/) * Tue Feb 21 2023 Zbigniew Jędrzejewski-Szmek - 4.0.2-7 - Drop unused .pth file for python2 * Tue Feb 21 2023 Ben Boeckel - 4.0.2-6 - Backport PR#6374 to fix MPI_allgatherv fastpath error * Thu Jan 19 2023 Fedora Release Engineering - 4.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Dec 03 2022 Florian Weimer - 4.0.2-4 - Port configure script to C99 * Thu Jul 21 2022 Fedora Release Engineering - 4.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 4.0.2-2 - Rebuilt for Python 3.11 * Sun Apr 10 2022 Zbigniew Jędrzejewski-Szmek - 4.0.2-1 - Version 4.0.2 (rhbz#1939170) * Tue Feb 08 2022 Zbigniew Jędrzejewski-Szmek - 3.4.1-14 - ucx is only available on three architectures * Tue Feb 08 2022 Zbigniew Jędrzejewski-Szmek - 3.4.1-13 - Unbundle libfabric and ucx * Tue Feb 08 2022 Zbigniew Jędrzejewski-Szmek - 3.4.1-12 - Drop link and optimization flags from pkgconf file * Thu Jan 20 2022 Fedora Release Engineering - 3.4.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jan 19 2022 Sandro Mani - 3.4.1-10 - Create and own mpich/lib/cmake directory * Thu Jul 22 2021 Fedora Release Engineering - 3.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 3.4.1-2 - Rebuilt for Python 3.10 * Mon May 17 2021 Zbigniew Jędrzejewski-Szmek - 3.4.1-1 - Rip out part of configure.ac to fix build under autoconf-2.71 (#1943036) * Wed Jan 27 2021 Zbigniew Jędrzejewski-Szmek - 3.4.1-1 - Update to latest version (#1912981) * Wed Jan 27 2021 Zbigniew Jędrzejewski-Szmek - 3.4-1 - Update to latest version (#1912981) * Tue Jan 26 2021 Fedora Release Engineering - 3.3.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Sep 15 2020 Zbigniew Jędrzejewski-Szmek - 3.3.2-8 - Do not require non-loopback addresses in mpirun (#1839007) * Thu Aug 06 2020 Christoph Junghans - 3.3.2-7 - Drop build flag from mpi wrappers * Tue Jul 28 2020 Fedora Release Engineering - 3.3.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 25 2020 Miro Hrončok - 3.3.2-5 - Rebuilt for Python 3.9 * Fri Feb 14 2020 Christoph Junghans - 3.3.2-4 - Add 4320.patch to fix #1793563 and #1799473 * Thu Jan 30 2020 Zbigniew Jędrzejewski-Szmek - 3.3.2-3 - Add requirement for redhat-rpm-config (#1795674) * Wed Jan 29 2020 Fedora Release Engineering - 3.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Nov 17 2019 Zbigniew Jędrzejewski-Szmek - 3.3.2-1 - Subpackage python2-mpich has been removed (#1773126) * Sun Nov 17 2019 Zbigniew Jędrzejewski-Szmek - 3.3.2-1 - Update to latest version (#1772152). This is a bugfix release: https://github.com/pmodels/mpich/blob/v3.3.2/CHANGES. * Wed Aug 28 2019 Zbigniew Jędrzejewski-Szmek - 3.3.1-1 - Really upgrade to 3.3.1 (#1745252) * Sat Aug 24 2019 Zbigniew Jędrzejewski-Szmek - 3.2.1-1 - "Upgrade" back to 3.2.1 (#1745252) (I made a typo, and instead of *upgrading* to 3.3.1, I made a downgrade to 3.1.1. Too bad that we don't have *any* automatic check that would warn about this in Fedora. Version 3.3.1 requires a newer hwloc, but some of the dependencies are not ready to switch. So let's "upgrade" back to 3.2.1, and plan to 3.3.1 next week.) * Mon Aug 19 2019 Miro Hrončok - 3.1.1-2 - Rebuilt for Python 3.8 * Tue Jul 30 2019 Zbigniew Jędrzejewski-Szmek - 3.1.1-1 - Update to latest version (#1718376) * Thu Jul 25 2019 Fedora Release Engineering - 3.2.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed May 8 2019 Zbigniew Jędrzejewski-Szmek - 3.2.1-12 - Require main package and appropriate python version from python subpackages * Tue May 7 2019 Zbigniew Jędrzejewski-Szmek - 3.2.1-11 - Add a guard for python3 version (#1705296) - Module files are moved to /usr/share/modulefiles/mpi/ * Tue May 7 2019 Zbigniew Jędrzejewski-Szmek - 3.2.1-10 - Drop all custom compilation and link flags (#1573088) * Fri Feb 01 2019 Fedora Release Engineering - 3.2.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 3.2.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 3.2.1-7 - Rebuilt for Python 3.7 * Tue Jun 19 2018 Miro Hrončok - 3.2.1-6 - Rebuilt for Python 3.7 * Wed Apr 4 2018 Zbigniew Jędrzejewski-Szmek - 3.2.1-5 - Update MANPATH so that normal man pages can still be found (#1533717) * Thu Feb 08 2018 Fedora Release Engineering - 3.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Feb 01 2018 Ralf Corsépius - 3.2.1-3 - Rebuilt for GCC-8.0.1. * Sun Nov 12 2017 Zbigniew Jędrzejewski-Szmek - 3.2.1-2 - Update $modincdir in mpifort after moving .mod files (#1301533) - Move compiler wrappers to mpich-devel (#1353621) - Remove bogus rpath (#1361586) * Sun Nov 12 2017 Zbigniew Jędrzejewski-Szmek - 3.2.1-1 - Update to latest bugfix release (#1512188) * Thu Aug 03 2017 Fedora Release Engineering - 3.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 3.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 3.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 3.2-7 - Rebuild for Python 3.6 * Wed Nov 2 2016 Orion Poplawski - 3.2-7 - Split python support into sub-packages * Wed Mar 30 2016 Michal Toman - 3.2-6 - Fix build on MIPS * Thu Feb 04 2016 Fedora Release Engineering - 3.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jan 22 2016 Orion Poplawski - 3.2-4 - Add patch to allow -host localhost to work on builders * Wed Jan 20 2016 Orion Poplawski - 3.2-3 - Use nemesis channel on all platforms * Wed Dec 9 2015 Zbigniew Jędrzejewski-Szmek - 3.2-2 - Soften version check (#1289779) * Tue Dec 1 2015 Zbigniew Jędrzejewski-Szmek - 3.2-1 - Update to latest version * Mon Nov 16 2015 Zbigniew Jędrzejewski-Szmek - 3.1.4-9 - Update requires and fix MPI_FORTRAN_MOD_DIR var * Mon Nov 16 2015 Zbigniew Jędrzejewski-Szmek - 3.1.4-8 - Move fortran .mod files to %%{_fmoddir}/mpich (#1154991) - Move man pages to arch-specific dir (#1264359) * Tue Nov 10 2015 Fedora Release Engineering - 3.1.4-7 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Aug 27 2015 Zbigniew Jędrzejewski-Szmek - 3.1.4-6 - Use .pth files to set the python path (https://fedorahosted.org/fpc/ticket/563) - Cleanups to the spec file * Sun Jul 26 2015 Sandro Mani - 3.1.4-5 - Require, BuildRequire: rpm-mpi-hooks * Wed Jun 17 2015 Fedora Release Engineering - 3.1.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 9 2015 Zbigniew Jędrzejewski-Szmek - 3.1.4-3 - Change MPI_SYCONFIG to /etc/mpich-x86_64 (#1196728) * Fri Mar 13 2015 Orion Poplawski - 3.1.4-2 - Set PKG_CONFIG_DIR (bug #1113627) - Fix modulefile names and python paths (bug#1201343) * Wed Mar 11 2015 Orion Poplawski - 3.1.4-1 - Update to 3.1.4 - Own and set PKG_CONFIG_DIR (bug #1113627) - Do not ship old modulefile location (bug #921534) * Sun Aug 17 2014 Fedora Release Engineering - 3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Feb 21 2014 Ville Skyttä - 3.1-2 - Install rpm macros to %%{_rpmconfigdir}/macros.d as non-%%config. * Fri Feb 21 2014 Deji Akingunola - 3.1-1 - Update to 3.1 * Mon Jan 6 2014 Peter Robinson 3.0.4-7 - Set the aarch64 compiler options * Fri Dec 13 2013 Peter Robinson 3.0.4-6 - Now have valgrind on ARMv7 - No valgrind on aarch64 * Fri Aug 23 2013 Orion Poplawski - 3.0.4-5 - Add %%check * Sat Aug 03 2013 Fedora Release Engineering - 3.0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Jul 20 2013 Deji Akingunola - 3.0.4-3 - Add proper Provides and Obsoletes for the sub-packages * Thu Jul 18 2013 Deji Akingunola - 3.0.4-2 - Fix some of the rpmlint warnings from package review (BZ #973493) * Wed Jun 12 2013 Deji Akingunola - 3.0.4-1 - Update to 3.0.4 * Thu Feb 21 2013 Deji Akingunola - 3.0.2-1 - Update to 3.0.2 - Rename to mpich. - Drop check for old alternatives' installation * Thu Feb 14 2013 Fedora Release Engineering - 1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Nov 1 2012 Orion Poplawski - 1.5-1 - Update to 1.5 - Drop destdir-fix and mpicxx-und patches - Update rpm macros to use the new module location * Wed Oct 31 2012 Orion Poplawski - 1.4.1p1-9 - Install module file in mpi subdirectory and conflict with other mpi modules - Leave existing module file location for backwards compatibility for a while * Fri Jul 20 2012 Fedora Release Engineering - 1.4.1p1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Feb 15 2012 Peter Robinson - 1.4.1p1-7 - Rebuild for new hwloc * Wed Feb 15 2012 Peter Robinson - 1.4.1p1-6 - Update ARM build configuration * Fri Jan 13 2012 Fedora Release Engineering - 1.4.1p1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Jan 2 2012 Jussi Lehtola - 1.4.1p1-4 - Bump spec. * Wed Nov 16 2011 Jussi Lehtola - 1.4.1p1-3 - Comply to MPI guidelines by separating autoloading into separate package (BZ #647147). * Tue Oct 18 2011 Deji Akingunola - 1.4.1p1-2 - Rebuild for hwloc soname bump. * Sun Sep 11 2011 Deji Akingunola - 1.4.1p1-1 - Update to 1.4.1p1 patch update - Add enable-lib-depend to configure flags * Sat Aug 27 2011 Deji Akingunola - 1.4.1-1 - Update to 1.4.1 final - Drop the mpd subpackage, the PM is no longer supported upstream - Fix undefined symbols in libmpichcxx (again) (#732926) * Wed Aug 03 2011 Jussi Lehtola - 1.4-2 - Respect environment module guidelines wrt placement of module file. * Fri Jun 17 2011 Deji Akingunola - 1.4-1 - Update to 1.4 final ## END: Generated by rpmautospec