Overview
This guide provides instructions for installing the prerequisites needed to run and build PyTorch 2.16 on Intel GPUs.
If you are compiling and using PyTorch 2.15, please refer to the prerequisite instructions specific to PyTorch 2.15.
Choose your path
- Run PyTorch from official wheels (
pip install) — you only need the Intel GPU driver. Follow Install the Intel GPU Driver, then continue with Get Started with PyTorch on Intel GPUs. The runtime libraries come with the wheel dependencies. - Build PyTorch from source — install the Intel GPU driver first, then the development dependencies in Build from Source Dependencies.
Install the Intel GPU Driver
We recommend installing and using the latest drivers to ensure optimal performance and compatibility for your hardware.
PyTorch 2.16 is validated against the following Linux driver components. We recommend using these versions or newer.
| Component | Validated version |
|---|---|
| Level Zero | 1.32.0 |
Intel® Graphics Compiler (libigc2) | 2.41.16 |
intel-ocloc | 26.35.39758.21 |
Check your installed versions:
apt list --installed | grep -E "libze|libigc2|intel-ocloc"
Driver Installation for Intel Data Center GPUs
The Data Center GPU Driver LTS2 Installation Instructions describe software installation for Intel® Data Center GPU Max Series systems, along with compute and media runtimes and development packages.
Optionally, follow these instructions to verify expected Intel GPU hardware is working.
Driver Installation for Intel Client GPUs
Refer to the Client GPU installation instructions for latest Ubuntu for installing the Intel GPU drivers.
Optionally, follow these instructions to verify expected Intel GPU hardware is working.
Hardware verified with Ubuntu 26.04 & 24.04
- Intel® Arc™ A-Series Graphics
- Intel® Arc™ B-Series Graphics
- Intel® Arc™ Pro B50 / B60 / B65 / B70 Graphics
- Intel® Core™ Ultra Processors with Intel® Arc™ Graphics
- Intel® Core™ Ultra Mobile Processors (Series 2) with Intel® Arc™ Graphics
- Intel® Core™ Ultra Processors (Series 2) with Intel® Arc™ Graphics
Hardware verified with Ubuntu 26.04
- Intel® Core™ Ultra Mobile Processors (Series 3) with Intel® Arc™ Graphics
PyTorch 2.16 is validated against Windows graphics driver 32.0.101.9175 WHQL Certified. We recommend using this version or newer.
Follow the instructions in the Intel® & Iris® Xe Graphics - Windows documentation to download and run the installer to update your WHQL Certified graphics driver to version 32.0.101.9175 WHQL Certified (Latest) or higher. Please include LevelZeroSDK in the installation package for torch.compile usage on Windows.
Hardware verified with Windows 11
- Intel® Arc™ A-Series Graphics
- Intel® Arc™ B-Series Graphics
- Intel® Core™ Ultra Processors with Intel® Arc™ Graphics
- Intel® Core™ Ultra Mobile Processors (Series 2) with Intel® Arc™ Graphics
- Intel® Core™ Ultra Processors (Series 2) with Intel® Arc™ Graphics
- Intel® Core™ Ultra Mobile Processors (Series 3) with Intel® Arc™ Graphics
Windows Subsystem for Linux 2 runs a Linux distribution as a guest on a Windows host. The driver stack is split: the Windows host driver owns the GPU and exposes it to the guest, and the guest only needs the Intel user-mode compute runtime (UMD). No Linux kernel-mode GPU driver is installed inside the WSL2 guest. The guest runtime packages follow the validated Linux versions.
Hardware verified with WSL2 (Ubuntu 26.04 & 24.04)
- Intel® Arc™ A-Series Graphics
- Intel® Arc™ B-Series Graphics
- Intel® Core™ Ultra Processors with Intel® Arc™ Graphics
- Intel® Core™ Ultra Mobile Processors (Series 2) with Intel® Arc™ Graphics
- Intel® Core™ Ultra Processors (Series 2) with Intel® Arc™ Graphics
- Intel® Core™ Ultra Mobile Processors (Series 3) with Intel® Arc™ Graphics
-
On Windows host: Install the Windows GPU driver, as described in Install for Windows.
-
On Windows host: List the Ubuntu distributions available for installation, then install a distribution from the validated list:
wsl --list --online wsl --install -d Ubuntu-26.04 -
On WSL2 guest: Add the Intel client GPU package repository, following the Client GPU installation instructions for latest Ubuntu. Follow only the repository setup steps.
-
On WSL2 guest: Install the user-mode compute runtime packages:
sudo apt update sudo apt install -y libze1 libze-intel-gpu1 intel-opencl-icd clinfo libze-dev intel-ocloc -
On WSL2 guest: Verify that the guest sees the GPU:
ls -l /dev/dxg clinfo -lThe
/dev/dxgmust exist, andclinfo -lmust list an Intel platform with at least one device.If
/dev/dxgis missing, the host is not exposing the GPU. Update the Windows host driver and restart WSL2:wsl --shutdown wsl -d Ubuntu-26.04If
/dev/dxgexists but no device is listed, the runtime packages from step 4 are missing or incomplete.
Next step
- Running official wheels: you are done with this page. Continue with Get Started with PyTorch on Intel GPUs.
- Building from source: if you need to build PyTorch from source, continue to Build from Source Dependencies to install the additional development dependencies.
Build from Source Dependencies
Skip this section if you only run PyTorch wheel binaries. Install the Intel GPU driver first, then Intel® Deep Learning Essentials. On Linux with supported hardware, Intel® OMIX is another option that bundles the driver and Intel® Deep Learning Essentials components in one package set.
PyTorch 2.16 is validated against the versions below. If you need to build an earlier PyTorch release from source, use the matching version.
| PyTorch version | Intel® Deep Learning Essentials version | Intel® OMIX version |
|---|---|---|
| 2.16 | 2026.2 | 0.5.0 |
| 2.15 | 2026.1.3 | 0.4.0 |
| 2.14 | 2026.1.2 | 0.3.0 |
Choose one of the following. Do not mix Intel® OMIX with Intel® Deep Learning Essentials or with the client GPU PPA driver packages; each Intel® OMIX release is a pinned set of component versions (including the compute runtime), and mixing install approaches causes dependency conflicts.
Option 1: Intel® Deep Learning Essentials
Supported for all Intel GPUs listed in Install for Linux. Install the Intel GPU driver first.
For RPM-based distributions such as Red Hat Enterprise Linux Server, YUM is the usual choice. You'll need to configure YUM to install software packages that aren't available in the default repositories. These instructions show how to add access to the appropriate Intel repository, along with the public key used to authenticate the downloaded packages.
-
Create an Intel YUM repository information file and move it to the YUM configuration directory:
tee > /tmp/oneAPI.repo << EOF [oneAPI] name=Intel® oneAPI repository baseurl=https://yum.repos.intel.com/oneapi enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB EOF sudo mv /tmp/oneAPI.repo /etc/yum.repos.d -
Use YUM/Zypper to install Intel® Deep Learning Essentials 2026.2:
sudo yum install intel-deep-learning-essentials-2026.2 or sudo zypper install intel-deep-learning-essentials-2026.2
For Debian-based Linux distributions such as Ubuntu Server, APT is the usual choice. You'll need to configure APT to install software packages that aren't available in the default repositories. These instructions show how to add access to the appropriate Intel repository, along with the public key used to authenticate the downloaded packages.
-
Make sure the necessary tools to add repository access are available:
sudo apt update sudo apt install -y gpg-agent wget gnupg -
Download the Intel APT repository's public key and put it into the
/usr/share/keyringsdirectory:wget -qO- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | sudo gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list -
Update the APT package list and repository index:
sudo apt update -
Use APT to install Intel® Deep Learning Essentials 2026.2:
sudo apt install -y intel-deep-learning-essentials-2026.2
Instead of using a package manager, you can install Intel® Deep Learning Essentials using offline installation scripts. Each installation script is a file containing all the needed files together with a script that extracts and installs the development package.
Important Use sudo to install files in system directories so they're available globally. Without sudo, files are installed in the current user's home directory.
-
Make sure the necessary tools are available:
sudo apt update sudo apt install -y wget -
Download the Intel® Deep Learning Essentials offline installation script and install:
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/aef232d2-aac5-4cd6-bceb-911019bbb6a8/intel-deep-learning-essentials-2026.2.0.640_offline.sh sudo sh ./intel-deep-learning-essentials-2026.2.0.640_offline.sh -a --silent --eula accept
For building PyTorch from source, use the following commands to configure the build environment:
source /opt/intel/oneapi/compiler/latest/env/vars.sh
source /opt/intel/oneapi/umf/latest/env/vars.sh
source /opt/intel/oneapi/pti/latest/env/vars.sh
source /opt/intel/oneapi/ccl/latest/env/vars.sh
source /opt/intel/oneapi/mpi/latest/env/vars.sh
For running the wheel you built, source the above variables and additionally source tcm:
source /opt/intel/oneapi/compiler/latest/env/vars.sh
source /opt/intel/oneapi/umf/latest/env/vars.sh
source /opt/intel/oneapi/pti/latest/env/vars.sh
source /opt/intel/oneapi/ccl/latest/env/vars.sh
source /opt/intel/oneapi/mpi/latest/env/vars.sh
source /opt/intel/oneapi/tcm/latest/env/vars.sh
Consider adding the runtime commands to your ~/.bashrc file so they run every time you log in or create a new shell session.
Option 2: Intel® Open Middleware Xe (Intel® OMIX)
Intel® OMIX is a validated Intel GPU software stack with pinned component versions that includes both the Intel GPU driver stack and the Intel® Deep Learning Essentials components. If you use Intel® OMIX, skip the separate Linux driver installation and Option 1.
Supported only for the following hardware, verified with Ubuntu 26.04 & 24.04:
- Intel® Arc™ Pro B50 Graphics
- Intel® Arc™ Pro B60 Graphics
- Intel® Arc™ Pro B65 Graphics
- Intel® Arc™ Pro B70 Graphics
For any other Intel GPU, use Option 1: Intel® Deep Learning Essentials.
Intel® OMIX installs the complete stack needed to build PyTorch from source:
- Intel Compute Runtime
- Intel performance libraries:
- Intel® oneAPI DPC++ Library (oneDPL)
- Intel® oneAPI Math Kernel Library (oneMKL)
- Intel® Collective Communications Library (oneCCL)
- Intel® Profiling Tools Interfaces for GPU
To install Intel® OMIX 0.5.0, follow the steps at Installing Intel® Open Middleware Xe.
For building PyTorch from source and for running the wheel you built, source the oneAPI environment script provided by intel-omix-dev:
source /opt/intel/oneapi/setvars.sh
Consider adding this to your ~/.bashrc so it runs every time you log in or create a new shell session.
Then verify the installation:
xpu-smi discovery
clinfo -l
source /opt/intel/oneapi/setvars.sh && sycl-ls
PyTorch 2.16 requires Intel® Deep Learning Essentials 2026.2.0.
Click on the following to download the Intel® Deep Learning Essentials package. Then double-click on the downloaded exe file to run it and follow the instructions to install: intel-deep-learning-essentials-2026.2.0.638_offline.exe.
Use this command to configure environment variables, important folders, and command settings.
call "C:\Program Files (x86)\Intel\oneAPI\compiler\latest\env\vars.bat"
call "C:\Program Files (x86)\Intel\oneAPI\ocloc\latest\env\vars.bat"
These commands must be run every time you log in or create a new shell session.
Install Intel® Deep Learning Essentials in the WSL2 guest by following Linux Option 1, Option B (APT), including its environment variable setup.
Where to go next?
After installing the prerequisites as shown above, you're ready to return to and continue following the upstream PyTorch instructions in the PyTorch Building from Source: Install Dependencies section.