How To Install mpich on CentOS 8

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 CentOS 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. mpich 3.3.2 9.el8 x86_64 1.4 M mpich-3.3.2-9.el8.src.rpm appstream 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install mpich.

Install mpich on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 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 CentOS 8

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

sudo dnf remove mpich

mpich Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/28eb69ef195b92eea6bad60aed6a5ec14398d1
/usr/lib/.build-id/14
/usr/lib/.build-id/14/08200b70bf410a6213edc4eb8fc58466bd9907
/usr/lib/.build-id/21
/usr/lib/.build-id/21/0a6cd3aeab8502ac7733cdd822e8caf5cfc2c8
/usr/lib/.build-id/23
/usr/lib/.build-id/23/4834ed29fe6f5eab02128d398f22a8881bc52d
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/51d95fd29d11d824ed5a3dd0f0fecdb10f8d85
/usr/lib/.build-id/75
/usr/lib/.build-id/75/139a44bf9c1777da7bb5eaf0754249d8ad83c1
/usr/lib/.build-id/be
/usr/lib/.build-id/be/0b4830c9a84004dec1380a4ca613950f6c425d
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/d2e85b7c0a677026b00b7338fea60035c4bf81
/usr/lib/.build-id/d2/db4e43b3963d06448549fc679b0b78ce7dc302
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/9ec3cfa8a760cf2a9e6ff5d09d9a83389b6ec4
/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/19
/usr/lib/.build-id/19/5e0af725f62895cbb9c685257c55dbb3c8191c
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/bcd845fa0a8353830bf44aa4149b470a1b979c
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/872fd7937809b88f680a5c9d684e0acbc40b7b
/usr/lib/.build-id/43
/usr/lib/.build-id/43/9a0fec433f8658d301a8f363204dfb5b1cb438
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/abb294909560f78f7b70a16cccd4a5686c7cbd
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/970431f99c840cfc8a9ae0059dff60b2b12561
/usr/lib/.build-id/95
/usr/lib/.build-id/95/edb76ffb62139b367a1acdb0bac5d765125b32
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/d62b520d91100e9997f521af4095ce20432944
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/9b653489aa9a742f3f81243cc21ebc4468bf9f
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/f1d04bb245f8ef844eb76d0f0ce94e96eec6da
/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 CentOS 8 using yum and dnf.