Announcement

Collapse
No announcement yet.

How to Install OpenCL for Intel GPU on Fedora 40+

Collapse
X
Collapse
  •  

  • How to Install OpenCL for Intel GPU on Fedora 40+


    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






    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 .





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





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





    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.





    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






    More...
      Posting comments is disabled.

    Categories

    Collapse

    Article Tags

    Collapse

    There are no tags yet.

    Latest Articles

    Collapse

    • How to Disable UEFI Secure Boot on a Proxmox VE Virtual Machine
      by Kasimba
      For GPU passthrough to work or for installing specific device drivers on a Proxmox VE virtual machine, you may need to disable UEFI Secure Boot on your Proxmox VE virtual machine.

      In this article, I will show you how to disable UEFI secure boot on a Proxmox VE virtual machine.

      The procedures shown in this article will also work on any KVM/QEMU/libvirt virtual machines and virtual machines running on other virtualization platforms based on the KVM/QEMU/libvirt hyperviso...
      Yesterday, 07:36 AM
    • Simplify Your Life with Taskwarrior's Intuitive Linux Job Scheduling
      by Kasimba



      by George Whittaker


      Introduction

      In the digital age, the ability to effectively manage time and tasks is invaluable, especially for those who work in technology and software development. Linux users, known for their preference for powerful, flexible tools, have various options for task management and scheduling. One of the standout tools in this area is Taskwarrior, a command-line task management utility that...
      Yesterday, 07:36 AM
    • How to Set and Use Environment Variables In Bash Script
      by Kasimba
      In bash scripting, environment variables are used to save and manage the data to modify the processes in the system. Using the bash scripts, you can use the environment variables to configure the system process. Environment variables also offer security and transmit the information from one script to another.
      Hence, there are multiple uses of environment variables that you can use to enhance the automation in the Linux system. So, if you want to learn the simple ways to set and use environment...
      05-03-2024, 08:50 PM
    • How to Check Bash Version
      by Kasimba
      Checking the bash version helps Linux users in many cases, including troubleshooting and finding the currently available version in the system. If you are a regular bash user, it is good to check the bash version and keep it up to date as per the latest updates available. However, if you are a newbie in bash scripting, then you probably have never encountered a situation where you need to check the bash version.
      So, in this guide, we will explain the simplest way to check the bash version...
      05-03-2024, 08:50 PM
    • What is Shebang: Bash Script Header on First Line?
      by Kasimba
      As Linux enthusiasts, we all come across bash scripting as an essential part of the Linux system. However, many Linux users don’t know why the first line of the bash script contains #!. So this combination of # and ! is called shebang or shebang.
      Although shebang looks like a bash script header, it initially instructs the system about interpreters to execute the script. This concept feels a bit complicated, but that’s not true, as this guide is all about the shebang: bash script header....
      05-02-2024, 07:59 PM
    • Bash Script Loops Examples
      by Kasimba
      A loop in programming is a control structure that allows a specific code to be executed repeatedly until a condition is met. This process is repeated until no further action is required. Loop allows you to repeat the desired set of instructions numerous times to attain the desired outcome. These recursions can be useful for all tasks that require repetitive operations or when working with data collections.
      In this article, we will explore the meaning, types, and examples of loops, further...
      05-02-2024, 07:59 PM
    Working...
    X