How To Install intel-opencl on Fedora 36

In this tutorial we learn how to install intel-opencl in Fedora 36. intel-opencl is OpenCL support implementation for Intel GPUs

Introduction

In this tutorial we learn how to install intel-opencl on Fedora 36.

What is intel-opencl

Implementation for the Intel GPUs of the OpenCL specification - a generic compute oriented API. This code base contains the code to run OpenCL programs on Intel GPUs which basically defines and implements the OpenCL host functions required to initialize the device, create the command queues, the kernels and the programs and run them on the GPU.

We can use yum or dnf to install intel-opencl on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install intel-opencl.

Install intel-opencl on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install intel-opencl using dnf by running the following command:

sudo dnf -y install intel-opencl

Install intel-opencl on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install intel-opencl using yum by running the following command:

sudo yum -y install intel-opencl

How To Uninstall intel-opencl on Fedora 36

To uninstall only the intel-opencl package we can use the following command:

sudo dnf remove intel-opencl

intel-opencl Package Contents on Fedora 36

/etc/OpenCL/vendors/intel.icd
/usr/lib/.build-id
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/28a5a3e2268b2aed9bcb5575b7af5bf7cd1f98
/usr/lib64/intel-opencl/libigdrcl.so
/usr/share/licenses/intel-opencl
/usr/share/licenses/intel-opencl/LICENSE.md

References

Summary

In this tutorial we learn how to install intel-opencl on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).