How To Install mvapich2 on CentOS 8

mvapich2 is OSU MVAPICH2 MPI package OSU MVAPICH2 MPI package

Introduction

In this tutorial we learn how to install mvapich2 on CentOS 8.

What is mvapich2

MVAPICH2 is a Message Passing Interface (MPI 3.0) implementation based on MPICH and developed by Ohio State University. mvapich2 2.3.5 1.el8 x86_64 3.8 M mvapich2-2.3.5-1.el8.src.rpm appstream OSU MVAPICH2 MPI package http BSD and MIT MVAPICH2 is a Message Passing Interface (MPI 3.0) implementation based on MPICH and developed by Ohio State University.

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

Install mvapich2 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 mvapich2 using dnf by running the following command:

sudo dnf -y install mvapich2

Install mvapich2 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 mvapich2 using yum by running the following command:

sudo yum -y install mvapich2

How To Uninstall mvapich2 on CentOS 8

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

sudo dnf remove mvapich2

mvapich2 Package Contents on CentOS 8

/etc/modulefiles/mpi/mvapich2-i386
/usr/lib/.build-id
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/830c0849e591be8c43bfc809ef396829f2175d
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/9e9533839f3119d8df12b819995634d25afb58
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/a5a68ccc850e3979c1421f46de0fb9343dda4a
/usr/lib/.build-id/43
/usr/lib/.build-id/43/007870430b373d56f240f5c92b53f6ed448157
/usr/lib/.build-id/66
/usr/lib/.build-id/66/2d0fe7311837e99a5378dec4f1492548ec2e2e
/usr/lib/.build-id/85
/usr/lib/.build-id/85/d5a481e31652e1ead1b3d80ea0bd0ec73b9513
/usr/lib/.build-id/89
/usr/lib/.build-id/89/a8f50fedcb523aee577aee7f654eb455162c30
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/a24faf0ca034aede472e56cb2bc2b29627cdaa
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/d7143c967d4a2b87f75fb8c216c52b156ddcb0
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/ca98f71b67ef476d054a3a7fc0d1cc2d919e76
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/c22ac57dbaa86c0fd02361d9cd641763fdb15e
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/466ec0a9f19fcf5f17e3eca2e696be597636fb
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/845756e35a063963ad9f0c909661872966fd4f
/usr/lib/gfortran/modules/mvapich2
/usr/lib/mvapich2
/usr/lib/mvapich2/bin
/usr/lib/mvapich2/bin/hydra_nameserver
/usr/lib/mvapich2/bin/hydra_persist
/usr/lib/mvapich2/bin/hydra_pmi_proxy
/usr/lib/mvapich2/bin/mpichversion
/usr/lib/mvapich2/bin/mpiexec
/usr/lib/mvapich2/bin/mpiexec.hydra
/usr/lib/mvapich2/bin/mpiexec.mpirun_rsh
/usr/lib/mvapich2/bin/mpiname
/usr/lib/mvapich2/bin/mpirun
/usr/lib/mvapich2/bin/mpirun_rsh
/usr/lib/mvapich2/bin/mpispawn
/usr/lib/mvapich2/bin/mpivars
/usr/lib/mvapich2/bin/parkill
/usr/lib/mvapich2/lib
/usr/lib/mvapich2/lib/libmpi.so.12
/usr/lib/mvapich2/lib/libmpi.so.12.1.1
/usr/lib/mvapich2/lib/libmpicxx.so.12
/usr/lib/mvapich2/lib/libmpicxx.so.12.1.1
/usr/lib/mvapich2/lib/libmpifort.so.12
/usr/lib/mvapich2/lib/libmpifort.so.12.1.1
/usr/lib/python3.6/site-packages/mvapich2
/usr/share/man/mvapich2-i386
/usr/share/man/mvapich2-i386/man1
/usr/share/man/mvapich2-i386/man1/hydra_nameserver.1.gz
/usr/share/man/mvapich2-i386/man1/hydra_persist.1.gz
/usr/share/man/mvapich2-i386/man1/hydra_pmi_proxy.1.gz
/usr/share/man/mvapich2-i386/man1/mpiexec.1.gz
/usr/share/man/mvapich2-i386/man2
/usr/share/man/mvapich2-i386/man3
/usr/share/man/mvapich2-i386/man4
/usr/share/man/mvapich2-i386/man5
/usr/share/man/mvapich2-i386/man6
/usr/share/man/mvapich2-i386/man7
/usr/share/man/mvapich2-i386/man8
/usr/share/man/mvapich2-i386/man9
/usr/share/man/mvapich2-i386/mann
/etc/modulefiles/mpi/mvapich2-x86_64
/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/9df13b89dc75fe1dbf168caba66deb31cebcaa
/usr/lib/.build-id/23
/usr/lib/.build-id/23/4530cab9c8a666df65c67373cde4945b341f4e
/usr/lib/.build-id/64
/usr/lib/.build-id/64/87a0f2603c4feccc6cfb19feaec96411407ef5
/usr/lib/.build-id/67
/usr/lib/.build-id/67/0e50959cda03b5a35e6739562f145d556bcc6d
/usr/lib/.build-id/80
/usr/lib/.build-id/80/fa24a760140362a3ce45b3b9372623af680bac
/usr/lib/.build-id/91
/usr/lib/.build-id/91/fe34683faa4bef21f706e1b6857a5a080476d1
/usr/lib/.build-id/99
/usr/lib/.build-id/99/8e503a90320210c856cc9c1d883ebfaa01fe1a
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/902bae67a9b1b61815221daa5453846d6147d8
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/8c803a0d35ee6bc135ebdea3f634f3f9241acc
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/72ea3fd8c437507225588173bd0aa9e0d38db0
/usr/lib/.build-id/df
/usr/lib/.build-id/df/12816ab684838d2d463c5d6d1d0807ac25b2ad
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/765258f4a954a1b320abb3398d3b7d8d0dedd9
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/086638932104376e46fa2c60c61f086738e266
/usr/lib64/gfortran/modules/mvapich2
/usr/lib64/mvapich2
/usr/lib64/mvapich2/bin
/usr/lib64/mvapich2/bin/hydra_nameserver
/usr/lib64/mvapich2/bin/hydra_persist
/usr/lib64/mvapich2/bin/hydra_pmi_proxy
/usr/lib64/mvapich2/bin/mpichversion
/usr/lib64/mvapich2/bin/mpiexec
/usr/lib64/mvapich2/bin/mpiexec.hydra
/usr/lib64/mvapich2/bin/mpiexec.mpirun_rsh
/usr/lib64/mvapich2/bin/mpiname
/usr/lib64/mvapich2/bin/mpirun
/usr/lib64/mvapich2/bin/mpirun_rsh
/usr/lib64/mvapich2/bin/mpispawn
/usr/lib64/mvapich2/bin/mpivars
/usr/lib64/mvapich2/bin/parkill
/usr/lib64/mvapich2/lib
/usr/lib64/mvapich2/lib/libmpi.so.12
/usr/lib64/mvapich2/lib/libmpi.so.12.1.1
/usr/lib64/mvapich2/lib/libmpicxx.so.12
/usr/lib64/mvapich2/lib/libmpicxx.so.12.1.1
/usr/lib64/mvapich2/lib/libmpifort.so.12
/usr/lib64/mvapich2/lib/libmpifort.so.12.1.1
/usr/lib64/python3.6/site-packages/mvapich2
/usr/share/man/mvapich2-x86_64
/usr/share/man/mvapich2-x86_64/man1
/usr/share/man/mvapich2-x86_64/man1/hydra_nameserver.1.gz
/usr/share/man/mvapich2-x86_64/man1/hydra_persist.1.gz
/usr/share/man/mvapich2-x86_64/man1/hydra_pmi_proxy.1.gz
/usr/share/man/mvapich2-x86_64/man1/mpiexec.1.gz
/usr/share/man/mvapich2-x86_64/man2
/usr/share/man/mvapich2-x86_64/man3
/usr/share/man/mvapich2-x86_64/man4
/usr/share/man/mvapich2-x86_64/man5
/usr/share/man/mvapich2-x86_64/man6
/usr/share/man/mvapich2-x86_64/man7
/usr/share/man/mvapich2-x86_64/man8
/usr/share/man/mvapich2-x86_64/man9
/usr/share/man/mvapich2-x86_64/mann

References

Summary

In this tutorial we learn how to install mvapich2 on CentOS 8 using yum and dnf.