Install OpenCL Drivers On Ubuntu

  1. Download Intel packages:

    Open a terminal window by pressing Ctrl + Alt + T keys on the keyboard.

    Create a temporary folder:

    mkdir neo
    

    Download all *.deb packages:

    Note

    This tutorial is using the OpenCL driver version that we tested. We recommend installing the latest OpenCL packages supported for your OS.

    cd neo
    wget https://github.com/intel/compute-runtime/releases/download/19.07.12410/intel-gmmlib_18.4.1_amd64.deb
    wget https://github.com/intel/compute-runtime/releases/download/19.07.12410/intel-igc-core_18.50.1270_amd64.deb
    wget https://github.com/intel/compute-runtime/releases/download/19.07.12410/intel-igc-opencl_18.50.1270_amd64.deb
    wget https://github.com/intel/compute-runtime/releases/download/19.07.12410/intel-opencl_19.07.12410_amd64.deb
    wget https://github.com/intel/compute-runtime/releases/download/19.07.12410/intel-ocloc_19.07.12410_amd64.deb
    
  2. Install all packages:

    sudo dpkg -i *.deb
    
  3. Check OpenCL driver

    Execute the following command to get a synthetic summary about all OpenCL platforms on the system and the devices they expose:

    Note

    You first have to install clinfo.

    /usr/bin/clinfo -l
    

    If clinfo doesn’t print anything, you might have to add your user to group Video.