How To Install valgrind-openmpi on CentOS 7

In this tutorial we learn how to install valgrind-openmpi on CentOS 7. valgrind-openmpi is OpenMPI support for valgrind

Introduction

In this tutorial we learn how to install valgrind-openmpi on CentOS 7.

What is valgrind-openmpi

A wrapper library for debugging OpenMPI parallel programs with valgrind. See the section on Debugging MPI Parallel Programs with Valgrind in the Valgrind User Manual for details.

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

Install valgrind-openmpi on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install valgrind-openmpi using yum by running the following command:

sudo yum -y install valgrind-openmpi

Install valgrind-openmpi on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install valgrind-openmpi

How To Uninstall valgrind-openmpi on CentOS 7

To uninstall only the valgrind-openmpi package we can use the following command:

sudo dnf remove valgrind-openmpi

References

Summary

In this tutorial we learn how to install valgrind-openmpi on CentOS 7 using yum and dnf.