Jump to content

How to Install OpenCL for Intel GPU on Fedora 40+


Linux Hint

Recommended Posts

OpenCL is an open-source library for running compute tasks on GPUs. OpenCL enables 3D hardware acceleration for supported applications (i.e. LibreOffice) using the GPU hardware (i.e. Intel iGPU) you have installed on your computer. So, unless OpenCL is installed, OpenCL-supported applications (i.e. LibreOffice) will not have hardware acceleration enabled and may not perform well (i.e. UI might be laggy) as a result. So, it’s a good idea to install OpenCL on your newly installed Fedora 40 (or later) desktop operating system.

In this article, I am going to show you how to install OpenCL for your Intel iGPU on Fedora 40 (or later).

 

Table of Contents

  1. Updating DNF Package Repository Cache on Fedora
  2. Installing OpenCL for Intel GPU on Fedora
  3. Checking if OpenCL is Working on Fedora
  4. Conclusion
  5. References

 

Updating DNF Package Repository Cache on Fedora

To update the DNF package repository cache on Fedora 40 (and future versions), run the following command:

$ sudo dnf makecache

how-to-install-opencl-for-intel-gpu-on-f

 

Installing OpenCL for Intel GPU on Fedora

To install OpenCL libraries for Intel GPUs, run the following command:

$ sudo dnf install intel-compute-runtime intel-opencl

 

To confirm the installation, press Y and then press <Enter>.

how-to-install-opencl-for-intel-gpu-on-f

 

OpenCL for Intel GPU is being installed. It will take a few seconds to complete.

how-to-install-opencl-for-intel-gpu-on-f

 

OpenCL libraries for Intel GPU should be installed on your Fedora system.

how-to-install-opencl-for-intel-gpu-on-f

 

For the changes to take effect, restart your computer with the following command:

$ sudo reboot

 

Checking if OpenCL is Working on Fedora

To check if OpenCL is working on your Fedora system, run the command below:

$ clinfo -l

 

If OpenCL is working, your Intel GPU should be listed as an OpenCL device as shown in the screenshot below.

how-to-install-opencl-for-intel-gpu-on-f

 

Conclusion

In this article, I have shown you how to install OpenCL for Intel GPU on your Fedora 40 (or later) operating system so that OpenCL-supported applications can perform better using OpenCL hardware acceleration on Fedora.

 

References

View the full article

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...