How To Install libnvgraph9.1 on Ubuntu 18.04

In this tutorial we learn how to install libnvgraph9.1 on Ubuntu 18.04. libnvgraph9.1 is NVIDIA Graph Analytics library (nvGRAPH)

Introduction

In this tutorial we learn how to install libnvgraph9.1 on Ubuntu 18.04.

What is libnvgraph9.1

libnvgraph9.1 is:

The NVIDIA Graph Analytics library (nvGRAPH) comprises of parallel algorithms for high performance analytics on graphs with up to 2 billion edges. nvGRAPH makes it possible to build interactive and high throughput graph analytics applications.

nvGRAPH supports three widely-used algorithms:

  • [Page Rank] is most famously used in search engines, and also used in social network analysis, recommendation systems, and for novel uses in natural science when studying the relationship between proteins and in ecological networks.
  • [Single Source Shortest Path] is used to identify the fastest path from A to B through a road network, and can also be used for a optimizing a wide range of other logistics problems.
  • [Single Source Widest Path] is used in domains like IP traffic routing and traffic-sensitive path planning.

In addition, the nvGRAPH semi-ring SPMV operations can be used to build a wide range of innovative graph traversal algorithms.

nvGRAPH accelerates analysis of large graphs by making efficient use of the massive parallelism available in NVIDIA Tesla GPUs. The size of a graph in memory is dominated by the number of edges. An M40 with 24 GB can support a graph of up to 2 billion edges.

There are three methods to install libnvgraph9.1 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 libnvgraph9.1 Using apt-get

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

sudo apt-get update

After updating apt database, We can install libnvgraph9.1 using apt-get by running the following command:

sudo apt-get -y install libnvgraph9.1

Install libnvgraph9.1 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnvgraph9.1 using apt by running the following command:

sudo apt -y install libnvgraph9.1

Install libnvgraph9.1 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 libnvgraph9.1 using aptitude by running the following command:

sudo aptitude -y install libnvgraph9.1

How To Uninstall libnvgraph9.1 on Ubuntu 18.04

To uninstall only the libnvgraph9.1 package we can use the following command:

sudo apt-get remove libnvgraph9.1

Uninstall libnvgraph9.1 And Its Dependencies

To uninstall libnvgraph9.1 and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libnvgraph9.1

Remove libnvgraph9.1 Configurations and Data

To remove libnvgraph9.1 configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libnvgraph9.1

Remove libnvgraph9.1 configuration, data, and all of its dependencies

We can use the following command to remove libnvgraph9.1 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libnvgraph9.1

References

Summary

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