How To Install hipcc on Debian 12

Learn how to install hipcc on Debian 12 with this tutorial. hipcc is C++ Runtime API and Kernel Language for AMD and NVIDIA GPUs

Introduction

In this tutorial we learn how to install hipcc on Debian 12.

What is hipcc

hipcc is:

HIP (Heterogeneous Interface for Portability) is a C++ Runtime API and Kernel Language that allows developers to create portable applications for AMD and NVIDIA GPUs from single source code.

Key features include:

  • HIP is very thin and has little or no performance impact over coding directly in CUDA mode;
  • HIP allows coding in a single-source C++ programming language including features such as templates, C++11 lambdas, classes, namespaces, and more;
  • HIP allows developers to use the “best” development environment and tools on each target platform;
  • the HIPify tools automatically convert source from CUDA to HIP;
  • developers can specialize for the platform (CUDA or AMD) to tune for performance or handle tricky cases.

New projects can be developed directly in the portable HIP C++ language and can run on either NVIDIA or AMD platforms. Additionally, HIP provides porting tools which make it easy to port existing CUDA codes to the HIP layer, with no loss of performance as compared to the original CUDA application. HIP is not intended to be a drop-in replacement for CUDA, and developers should expect to do some manual coding and performance tuning work to complete the port.

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

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

sudo apt-get update

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

sudo apt-get -y install hipcc

Install hipcc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install hipcc using apt by running the following command:

sudo apt -y install hipcc

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

sudo aptitude -y install hipcc

How To Uninstall hipcc on Debian 12

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

sudo apt-get remove hipcc

Uninstall hipcc And Its Dependencies

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

sudo apt-get -y autoremove hipcc

Remove hipcc Configurations and Data

To remove hipcc configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge hipcc

Remove hipcc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge hipcc

Dependencies

hipcc have the following dependencies:

References

Summary

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