How To Install libhiprand-dev on Debian 12

Learn how to install libhiprand-dev on Debian 12 with this tutorial. libhiprand-dev is wrapper library to port from cuRAND applications to HIP - headers

Introduction

In this tutorial we learn how to install libhiprand-dev on Debian 12.

What is libhiprand-dev

libhiprand-dev is:

The rocRAND project includes a wrapper library called hipRAND which allows user to easily port CUDA applications that use cuRAND library to the HIP layer. In ROCm environment hipRAND uses rocRAND, however in CUDA environment cuRAND is used instead.

This package provides AMD ROCm hipRAND development headers.

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

Install libhiprand-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 libhiprand-dev using apt-get by running the following command:

sudo apt-get -y install libhiprand-dev

Install libhiprand-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libhiprand-dev

Install libhiprand-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libhiprand-dev

How To Uninstall libhiprand-dev on Debian 12

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

sudo apt-get remove libhiprand-dev

Uninstall libhiprand-dev And Its Dependencies

To uninstall libhiprand-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libhiprand-dev

Remove libhiprand-dev Configurations and Data

To remove libhiprand-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libhiprand-dev

Remove libhiprand-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libhiprand-dev

Dependencies

libhiprand-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libhiprand-dev package on Debian 12 using different package management tools: apt, apt-get and aptitude.