How To Install ocl-icd-dev on Kali Linux

In this tutorial we learn how to install ocl-icd-dev on Kali Linux. ocl-icd-dev is Development files to build an OpenCL ICD

Introduction

In this tutorial we learn how to install ocl-icd-dev on Kali Linux.

What is ocl-icd-dev

ocl-icd-dev is:

OpenCL (Open Computing Language) is a multivendor open standard for general-purpose parallel programming of heterogeneous systems that include CPUs, GPUs and other processors.

This package provides a header file that allows an OpenCL implementation to build an installable client driver (ICD). With an ICD, an OpenCL implementation can be used by any OpenCL program without the need to link the program to the specific OpenCL implementation.

For building OpenCL applications, install the ocl-icd-opencl-dev package instead.

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

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

sudo apt-get -y install ocl-icd-dev

Install ocl-icd-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ocl-icd-dev

Install ocl-icd-dev Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install ocl-icd-dev

How To Uninstall ocl-icd-dev on Kali Linux

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

sudo apt-get remove ocl-icd-dev

Uninstall ocl-icd-dev And Its Dependencies

To uninstall ocl-icd-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove ocl-icd-dev

Remove ocl-icd-dev Configurations and Data

To remove ocl-icd-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge ocl-icd-dev

Remove ocl-icd-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ocl-icd-dev

Dependencies

ocl-icd-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install ocl-icd-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.