How To Install libblacs-mpi-dev on Ubuntu 18.04

In this tutorial we learn how to install libblacs-mpi-dev on Ubuntu 18.04. libblacs-mpi-dev is Basic Linear Algebra Comm. Subprograms - Dev. files for MPI

Introduction

In this tutorial we learn how to install libblacs-mpi-dev on Ubuntu 18.04.

What is libblacs-mpi-dev

libblacs-mpi-dev is:

The BLACS project is an ongoing investigation whose purpose is to create a linear algebra oriented message passing interface that may be implemented efficiently and uniformly across a large range of distributed memory platforms.

You can choose between an implementation based on MPI or PVM. This package uses MPI. There are packages for the shared libraries, for the static libraries and the development files (this one), and for test programs.

Most users do not need to install this package directly because it is used as a high level driver for the communication in the ScaLAPACK packages. Therefore, it is installed when installing ScaLAPACK. ScaLAPACK is a parallel version of LAPACK and is used on Beowulf type clusters.

There are three methods to install libblacs-mpi-dev on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libblacs-mpi-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libblacs-mpi-dev using apt-get by running the following command:

sudo apt-get -y install libblacs-mpi-dev

Install libblacs-mpi-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libblacs-mpi-dev using apt by running the following command:

sudo apt -y install libblacs-mpi-dev

Install libblacs-mpi-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libblacs-mpi-dev using aptitude by running the following command:

sudo aptitude -y install libblacs-mpi-dev

How To Uninstall libblacs-mpi-dev on Ubuntu 18.04

To uninstall only the libblacs-mpi-dev package we can use the following command:

sudo apt-get remove libblacs-mpi-dev

Uninstall libblacs-mpi-dev And Its Dependencies

To uninstall libblacs-mpi-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libblacs-mpi-dev

Remove libblacs-mpi-dev Configurations and Data

To remove libblacs-mpi-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libblacs-mpi-dev

Remove libblacs-mpi-dev configuration, data, and all of its dependencies

We can use the following command to remove libblacs-mpi-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libblacs-mpi-dev

References

Summary

In this tutorial we learn how to install libblacs-mpi-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.