How To Install mpich on Rocky Linux 8

In this tutorial we learn how to install mpich on Rocky Linux 8. mpich is A high-performance implementation of MPI

Introduction

In this tutorial we learn how to install mpich on Rocky Linux 8.

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.

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

Install mpich on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install mpich

Install mpich on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 Rocky Linux 8

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

sudo dnf remove mpich

mpich Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/39ae9a2fabed1fd16b0d498642c39ef59131fe
/usr/lib/.build-id/12
/usr/lib/.build-id/12/9e5828aeeca7dcbbd66de5ed102b11c437a4f5
/usr/lib/.build-id/24
/usr/lib/.build-id/24/54a662b743fbe977593d28fb6f7b137991ef53
/usr/lib/.build-id/48
/usr/lib/.build-id/48/8cdab38418d7e5750fc4c4b9de4edfccebf5f1
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/21913ceaa94fa46d57458541178f4f4e36ed04
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/ad786a3459e24e97ef1513b3e14745e2ca8809
/usr/lib/.build-id/df
/usr/lib/.build-id/df/58362c268f3e4ee553bf336fe354adfcab86df
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/b4d21f9b07890f3cf768b6f2bfd740e517e0e1
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/85a951ec60f43540d692bd98fa7581d9c4c037
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/afd4f3c3d337dc270cc444889b655901dfcaae
/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.8
/usr/lib64/mpich/lib/libmpicxx.so.12
/usr/lib64/mpich/lib/libmpicxx.so.12.1.8
/usr/lib64/mpich/lib/libmpifort.so.12
/usr/lib64/mpich/lib/libmpifort.so.12.1.8
/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/13
/usr/lib/.build-id/13/13cd8a12bedcdc9dbf3e019152f35fde563bae
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/aa5527b3c371f32319d9ee85b0da59b9e73e35
/usr/lib/.build-id/68
/usr/lib/.build-id/68/5687f4598fd4ac82b6fea51818730cf93e850b
/usr/lib/.build-id/77
/usr/lib/.build-id/77/9ffe15118fb4f7e269692f459de0593c894be3
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/b99123fcd817c9546a57ae4aebb0640b45dd0d
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/38ee5024c83e96cdc5ecc56ccd9b6f5d7cd8d8
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/78e9bb00d13c0d26c2d708ff0c601421adb9e1
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/ffbb90c570e40667f01c96057858cb8e9f4fef
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/1ecdef1c0cf0a2cc4a28592eecc6a71c0dec41
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/7876ffa9e148b6b21188060ee4efcc61be9eb8
/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.8
/usr/lib/mpich/lib/libmpicxx.so.12
/usr/lib/mpich/lib/libmpicxx.so.12.1.8
/usr/lib/mpich/lib/libmpifort.so.12
/usr/lib/mpich/lib/libmpifort.so.12.1.8
/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 Rocky Linux 8 using yum and dnf.