Configurations for Intel® Processor Graphics (GPU) with OpenVINO™¶
Once you have installed OpenVINO, to work with GPU, you need to install the Intel® Graphics Compute Runtime for OpenCL™ driver components required to use the GPU plugin and write custom layers for Intel® Integrated Graphics. Those drivers are not included in the OpenVINO installation package, so OpenVINO provides a script to download and install them separately.
Do the following steps:
If you installed OpenVINO Runtime from the archive file, you can find the
install_NEO_OCL_driver.shscript in the following directory:
If you installed OpenVINO Runtime via PyPI, you can download the
install_NEO_OCL_driver.shscript from the OpenVINO GitHub repository:
curl -L https://raw.githubusercontent.com/openvinotoolkit/openvino/releases/2022/2/scripts/install_dependencies/install_NEO_OCL_driver.sh --output install_NEO_OCL_driver.sh
Run the script:
chmod +x install_NEO_OCL_driver.sh sudo -E ./install_NEO_OCL_driver.sh
To use the Intel® Iris® Xe MAX Graphics, see the Intel® Iris® Xe MAX Graphics with Linux* page for driver installation instructions.
The script compares the driver version on the system to the current version. If the driver version on the system is higher or equal to the current version, the script does not install a new driver. If the version of the driver is lower than the current version, the script uninstalls the lower version and installs the current version with your permission:
Higher hardware versions require a higher driver version, namely 20.35 instead of 19.41. If the script fails to uninstall the driver, uninstall it manually. During the script execution, you may see the following command line output:
Add OpenCL user to video group
Ignore this suggestion and continue.
You can also find the most recent version of the driver, installation procedure and other information on the Intel® software for general purpose GPU capabilities site.
Optional: Install header files to allow compilation of new code. You can find the header files at Khronos OpenCL™ API Headers.
You’ve completed all required configuration steps to perform inference on processor graphics.
This section will help you check if you require driver installation. Install indicated version or higher.
If your applications offload computation to Intel® Integrated Graphics, you must have the Intel Graphics Driver for Windows installed on your hardware. Download and install the recommended version.
To check if you have this driver installed:
Type device manager in your Search Windows box and press Enter. The Device Manager opens.
Click the drop-down arrow to view the Display adapters. You can see the adapter that is installed in your computer:
Right-click the adapter name and select Properties.
Click the Driver tab to see the driver version.
You are done updating your device driver and are ready to use your GPU.
Now that you’ve installed OpenVINO Runtime, you’re ready to run your own machine learning applications! Learn more about how to integrate a model in OpenVINO applications by trying out the following tutorials.
Try the Python Quick Start Example to estimate depth in a scene using an OpenVINO monodepth model in a Jupyter Notebook inside your web browser.
Visit the Tutorials page for more Jupyter Notebooks to get you started with OpenVINO, such as:
Try the C++ Quick Start Example for step-by-step instructions on building and running a basic image classification C++ application.
Visit the Samples page for other C++ example applications to get you started with OpenVINO, such as: