Configurations for Intel® Processor Graphics (GPU) with OpenVINO™ — OpenVINO™ documentation (original) (raw)

To use the OpenVINO™ GPU plug-in and transfer the inference to the graphics of the Intel® processor (GPU), the Intel® graphics driver must be properly configured on the system.

Linux#

To use a GPU device for OpenVINO inference, you must install OpenCL runtime packages.

If you are using a discrete GPU (for example Arc 770), you must also be using a supported Linux kernel as per documentation.

Below are the instructions on how to install the OpenCL packages on supported Linux distributions. These instructions install the Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL(TM) Driver and its dependencies:

Ubuntu 22.04 LTS / Ubuntu 24.04 LTS

Download and install the deb packages published hereand install the apt package ocl-icd-libopencl1 with the OpenCl ICD loader.

Alternatively, you can add the apt repository by following theinstallation guide. Then install the ocl-icd-libopencl1, intel-opencl-icd, intel-level-zero-gpu and level-zeroapt packages:

apt-get install -y ocl-icd-libopencl1 intel-opencl-icd intel-level-zero-gpu level-zero sudo usermod -a -G render $LOGNAME

Ubuntu 20.04 LTS

Ubuntu 20.04 LTS is not updated with the latest driver versions. You can install the updated versions up to the version 22.43 from apt:

apt-get update && apt-get install -y --no-install-recommends curl gpg gpg-agent &&
curl https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg &&
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal-legacy main' | tee /etc/apt/sources.list.d/intel.gpu.focal.list &&
apt-get update apt-get update && apt-get install -y --no-install-recommends intel-opencl-icd intel-level-zero-gpu level-zero sudo usermod -a -G render $LOGNAME

Alternatively, download older deb version from here. Note that older driver version might not include some of the bug fixes and might be not supported on some latest platforms. Check the supported hardware for the versions you are installing.

RedHat UBI 8

Follow the guide to add Yum repository.

Install following packages:

yum install intel-opencl level-zero intel-level-zero-gpu intel-igc-core intel-igc-cm intel-gmmlib intel-ocloc

Install the OpenCL ICD Loader via:

rpm -ivh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm

Windows#

To install the Intel Graphics Driver for Windows, follow the driver installation instructions.

To check if the driver has been installed:

  1. Type device manager in the Search Windows field and press Enter. Device Manager will open.
  2. Click the drop-down arrow to display Display Adapters. You can see the adapter that is installed in your computer:
    ../../../_images/DeviceManager.PNG
  3. Right-click on the adapter name and select Properties.
  4. Click the Driver tab to view the driver version.
    ../../../_images/DeviceDriverVersion.svg

Your device driver has been updated and is now ready to use your GPU.

Windows Subsystem for Linux (WSL)#

WSL allows developers to run a GNU/Linux development environment for the Windows operating system. Using the GPU in WSL is very similar to a native Linux environment.

Note

Make sure your Intel graphics driver is updated to version 30.0.100.9955 or later. You can download and install the latest GPU host driver here.

Below are the required steps to make it work with OpenVINO:

Note

In WSL, the GPU device is accessed via the character device /dev/drx, while for native Linux OS it is accessed via /dev/dri.

Additional Resources#