How To Install mpich on Fedora 34

mpich is A high-performance implementation of MPI A high-performance implementation of MPI

Introduction

In this tutorial we learn how to install mpich on Fedora 34.

What is mpich

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 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. mpich 3.4.1 1.fc34 x86_64 2.4 M mpich-3.4.1-1.fc34.src.rpm fedora A high-performance implementation of MPI https MIT 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 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.

We can use yum or dnf to install mpich on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mpich.

Install mpich on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install mpich using dnf by running the following command:

sudo dnf -y install mpich

Install mpich on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install mpich using yum by running the following command:

sudo yum -y install mpich

How To Uninstall mpich on Fedora 34

To uninstall only the mpich package we can use the following command:

sudo dnf remove mpich

mpich Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/787934fa42344e37f520d3f33c37d805ce999a
/usr/lib/.build-id/15
/usr/lib/.build-id/15/033fd1e156a4336bc37c825e51790fc0545fdc
/usr/lib/.build-id/21
/usr/lib/.build-id/21/1675011210c8e3673902f792b94952855b0192
/usr/lib/.build-id/48
/usr/lib/.build-id/48/a8c8fd358dd9799521bf468399ada142e6dd42
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/0efcefa688c5f22104566adc5b1cb5db9c7fe2
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/167e87b7b2e37ab68ee5c3e9c53b0d65d1c929
/usr/lib/.build-id/77
/usr/lib/.build-id/77/90debe52a5acd184d15a19e0a99c5c18339a6b
/usr/lib/.build-id/af
/usr/lib/.build-id/af/b7884a2c63d93a53eb734486ca717f3b7ce3a9
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/de71af121fe776e6c1a383a03a526e4ad84e40
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/e031e4e6a13f1981f558f538f3c0351efaf995
/usr/lib64/mpich
/usr/lib64/mpich/bin
/usr/lib64/mpich/bin/hydra_nameserver
/usr/lib64/mpich/bin/hydra_persist
/usr/lib64/mpich/bin/hydra_pmi_proxy
/usr/lib64/mpich/bin/mpichversion
/usr/lib64/mpich/bin/mpiexec
/usr/lib64/mpich/bin/mpiexec.gforker
/usr/lib64/mpich/bin/mpiexec.hydra
/usr/lib64/mpich/bin/mpirun
/usr/lib64/mpich/bin/mpivars
/usr/lib64/mpich/bin/parkill
/usr/lib64/mpich/lib
/usr/lib64/mpich/lib/libmpi.so.12
/usr/lib64/mpich/lib/libmpi.so.12.1.10
/usr/lib64/mpich/lib/libmpicxx.so.12
/usr/lib64/mpich/lib/libmpicxx.so.12.1.10
/usr/lib64/mpich/lib/libmpifort.so.12
/usr/lib64/mpich/lib/libmpifort.so.12.1.10
/usr/share/doc/mpich
/usr/share/doc/mpich/CHANGES
/usr/share/doc/mpich/README
/usr/share/doc/mpich/README.envvar
/usr/share/doc/mpich/RELEASE_NOTES
/usr/share/licenses/mpich
/usr/share/licenses/mpich/COPYRIGHT
/usr/share/man/mpich-x86_64
/usr/share/man/mpich-x86_64/man1
/usr/share/man/mpich-x86_64/man1/hydra_nameserver.1.gz
/usr/share/man/mpich-x86_64/man1/hydra_persist.1.gz
/usr/share/man/mpich-x86_64/man1/hydra_pmi_proxy.1.gz
/usr/share/man/mpich-x86_64/man1/mpicc.1.gz
/usr/share/man/mpich-x86_64/man1/mpicxx.1.gz
/usr/share/man/mpich-x86_64/man1/mpiexec.1.gz
/usr/share/man/mpich-x86_64/man1/mpif77.1.gz
/usr/share/man/mpich-x86_64/man1/mpifort.1.gz
/usr/share/modulefiles/mpi
/usr/share/modulefiles/mpi/mpich-x86_64
/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/c2ba98756a239622b20babb4896c84fcfe9b45
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/fcaf82d946308df8e168c1cb7999fe3d675a8a
/usr/lib/.build-id/40
/usr/lib/.build-id/40/309ab7188eff66aff941d29992c1fd5ca09479
/usr/lib/.build-id/42
/usr/lib/.build-id/42/80a660e6af9024327e838379f8634fb4f677c5
/usr/lib/.build-id/48
/usr/lib/.build-id/48/b7e87a4cfae63b1c5c7326361068fc84fb15ce
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/9b5776ae03c747de67b7566f2a72de73558ed9
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/5217b642d95eb4023361f1cc5dd73129217107
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/304cd69e2b06f2b0cdc20b6a0603f526c2cc89
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/395ce3385014ce9b4ed71bcfbc868fd246f2a9
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/9f881cd7d8ca24879f08ef7149f21896f69c19
/usr/lib/mpich
/usr/lib/mpich/bin
/usr/lib/mpich/bin/hydra_nameserver
/usr/lib/mpich/bin/hydra_persist
/usr/lib/mpich/bin/hydra_pmi_proxy
/usr/lib/mpich/bin/mpichversion
/usr/lib/mpich/bin/mpiexec
/usr/lib/mpich/bin/mpiexec.gforker
/usr/lib/mpich/bin/mpiexec.hydra
/usr/lib/mpich/bin/mpirun
/usr/lib/mpich/bin/mpivars
/usr/lib/mpich/bin/parkill
/usr/lib/mpich/lib
/usr/lib/mpich/lib/libmpi.so.12
/usr/lib/mpich/lib/libmpi.so.12.1.10
/usr/lib/mpich/lib/libmpicxx.so.12
/usr/lib/mpich/lib/libmpicxx.so.12.1.10
/usr/lib/mpich/lib/libmpifort.so.12
/usr/lib/mpich/lib/libmpifort.so.12.1.10
/usr/share/doc/mpich
/usr/share/doc/mpich/CHANGES
/usr/share/doc/mpich/README
/usr/share/doc/mpich/README.envvar
/usr/share/doc/mpich/RELEASE_NOTES
/usr/share/licenses/mpich
/usr/share/licenses/mpich/COPYRIGHT
/usr/share/man/mpich-i386
/usr/share/man/mpich-i386/man1
/usr/share/man/mpich-i386/man1/hydra_nameserver.1.gz
/usr/share/man/mpich-i386/man1/hydra_persist.1.gz
/usr/share/man/mpich-i386/man1/hydra_pmi_proxy.1.gz
/usr/share/man/mpich-i386/man1/mpicc.1.gz
/usr/share/man/mpich-i386/man1/mpicxx.1.gz
/usr/share/man/mpich-i386/man1/mpiexec.1.gz
/usr/share/man/mpich-i386/man1/mpif77.1.gz
/usr/share/man/mpich-i386/man1/mpifort.1.gz
/usr/share/modulefiles/mpi
/usr/share/modulefiles/mpi/mpich-i386

References

Summary

In this tutorial we learn how to install mpich on Fedora 34 using yum and dnf.