Overview
This guide provides instructions for installing the prerequisites needed to run and build PyTorch 2.14 on Intel GPUs.
If you are compiling and using PyTorch 2.13, please refer to the prerequisite instructions specific to PyTorch 2.13.
Most users who only want to run PyTorch deep learning workloads need to follow the Driver Installation and use pip to install the PyTorch wheel binaries.
The runtime packages for Intel® Deep Learning Essentials will be installed automatically during the pip installation of PyTorch wheels. Therefore, please skip the Intel® Deep Learning Essentials installation in this article.
Only developers who want to build PyTorch from source code need to install both the Intel driver and Intel® Deep Learning essentials.
PyTorch and Intel Deep Learning Essentials Compatibility
If you need to build an earlier PyTorch release from source, make sure to use the matching Intel Deep Learning Essentials offline package version. See the compatibility table below for the corresponding versions.
| PyTorch Version | Intel Deep Learning Essentials Offline Package Version |
|---|---|
| 2.14 | 2026.1 |
| 2.13 | 2026.0 |
| 2.12 | 2025.3 |
If you have access to an Intel GPU, follow the instructions below to choose the appropriate method to install.
- Intel GPU Driver Installation: Install Intel GPU drivers along with compute and media runtimes and development packages.
- Intel® Deep Learning Essentials Installation: Install a subset of Intel® oneAPI components needed for building and running PyTorch.
Intel GPU Driver Installation
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
We recommend installing and using the latest drivers to ensure optimal performance and compatibility for your hardware.
Refer to the Client GPU installation instructions for latest Ubuntu for installing the Intel GPU drivers.
Hardware verified with Ubuntu 26.04 & 25.10 & 24.04
- Intel® Arc™ A-Series Graphics (CodeName: Alchemist)
- Intel® Arc™ B-Series Graphics (CodeName: Battlemage)
- Intel® Core™ Ultra Processors with Intel® Arc™ Graphics (CodeName: Meteor Lake-H)
- Intel® Core™ Ultra Mobile Processors (Series 2) with Intel® Arc™ Graphics (CodeName: Lunar Lake)
- Intel® Core™ Ultra Processors (Series 2) with Intel® Arc™ Graphics (CodeName: Arrow Lake-H)
Hardware verified with Ubuntu 26.04 & 25.10
- Intel® Core™ Ultra Mobile Processors (Series 3) with Intel® Arc™ Graphics (CodeName: Panther Lake)
Optionally, follow these instructions to verify expected Intel GPU hardware is working.
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.8801(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 (CodeName: Alchemist)
- Intel® Arc™ B-Series Graphics (CodeName: Battlemage)
- Intel® Core™ Ultra Processors with Intel® Arc™ Graphics (CodeName: Meteor Lake-H)
- Intel® Core™ Ultra Mobile Processors (Series 2) with Intel® Arc™ Graphics (CodeName: Lunar Lake)
- Intel® Core™ Ultra Processors (Series 2) with Intel® Arc™ Graphics (CodeName: Arrow Lake-H)
- Intel® Core™ Ultra Mobile Processors (Series 3) with Intel® Arc™ Graphics (CodeName: Panther Lake)
Windows Subsystem for Linux 2 runs a Linux distribution as a guest on a Windows host.
Hardware verified with WSL2 (Ubuntu 26.04 & 24.04)
- Intel® Arc™ A-Series Graphics (CodeName: Alchemist)
- Intel® Arc™ B-Series Graphics (CodeName: Battlemage)
- Intel® Core™ Ultra Processors with Intel® Arc™ Graphics (CodeName: Meteor Lake-H)
- Intel® Core™ Ultra Mobile Processors (Series 2) with Intel® Arc™ Graphics (CodeName: Lunar Lake)
- Intel® Core™ Ultra Processors (Series 2) with Intel® Arc™ Graphics (CodeName: Arrow Lake-H)
- Intel® Core™ Ultra Mobile Processors (Series 3) with Intel® Arc™ Graphics (CodeName: Panther Lake)
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.
There is no need for Linux kernel-mode GPU driver inside WSL2 guest. Follow the steps below, to install the driver stack for WSL2.
- 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 in the guest:
sudo apt update sudo apt install -y libze1 intel-level-zero-gpu intel-opencl-icd clinfo libze-dev intel-ocloc - On WSL2 guest: Verify that the guest sees the GPU:
The
/dev/dxgmust exist, andclinfo -lmust list an Intel platform with at least one device.ls -l /dev/dxg clinfo -lIf
/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.
Intel® Deep Learning Essentials Installation
If you need to build PyTorch, you will need to install Intel® Deep Learning Essentials. Follow the instructions below to choose the appropriate method to install.
Intel® Deep Learning Essentials Installation for Intel Data Center GPUs
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:
sudo yum install intel-deep-learning-essentials-2026.1 or sudo zypper install intel-deep-learning-essentials-2026.1
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/keyrings directory:
# download the key to system keyring 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 # add signed entry to apt sources and configure the APT client to use Intel repository: 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:
sudo apt install intel-deep-learning-essentials-2026.1
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/c109e1ae-e02c-48a6-917b-b03b90d33f77/intel-deep-learning-essentials-2026.1.2.25_offline.sh sudo sh ./intel-deep-learning-essentials-2026.1.2.25_offline.sh -a --silent --eula accept
Set Up Intel Deep Learning Environment Variables
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 PyTorch after the wheel is 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.
Intel Deep Learning Essentials Installation for Intel Client GPUs
- 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/keyrings directory:
# download the key to system keyring 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 # add signed entry to apt sources and configure the APT client to use Intel repository: 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:
sudo apt install intel-deep-learning-essentials-2026.1
Set Up Intel Deep Learning Environment Variables
Note If you installed PyTorch from Binaries, you already have the required packages in Intel Deep Learning Essentials. Do not configure the following variable to avoid conflicts.
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/pti/latest/env/vars.sh
source /opt/intel/oneapi/umf/latest/env/vars.sh
source /opt/intel/oneapi/ccl/latest/env/vars.sh
source /opt/intel/oneapi/mpi/latest/env/vars.sh
For running PyTorch after the wheel is built, source the above variables and additionally source tcm:
source /opt/intel/oneapi/compiler/latest/env/vars.sh
source /opt/intel/oneapi/pti/latest/env/vars.sh
source /opt/intel/oneapi/umf/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.
Note If you build PyTorch from source on Windows, here is required steps to enable Kineto before compiling.
Click on the following to download Intel® Deep Learning Essentials package. Then double-click on the downloaded exe files to run it and follow the instructions to install: intel-deep-learning-essentials-2026.1.2.22_offline.exe.
Set Up Intel Deep Learning Environment Variables
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.
Intel® Open Middleware Xe (OMIX) — Experimental
Experimental. Intel® Open Middleware Xe (Intel® OMIX) is a streamlined installation path that bundles the GPU driver, Intel Level Zero / OpenCL runtimes, the Intel SYCL compiler, and Intel performance libraries (oneDNN, oneMKL) in a single set of packages. For supported hardware, installing OMIX replaces both the Intel GPU Driver Installation and the Intel® Deep Learning Essentials Installation steps above. Support in PyTorch is experimental and currently limited to the hardware and OS listed below.
Supported hardware
- Intel® Arc™ Pro B50 Graphics
- Intel® Arc™ Pro B60 Graphics
- Intel® Arc™ Pro B65 Graphics
- Intel® Arc™ Pro B70 Graphics
Supported OS
- Ubuntu Desktop 24.04.4
- Ubuntu Desktop 24.04 with the 6.17 HWE kernel
Install
Follow the official OMIX installation guide: Installing Intel® Open Middleware Xe. Install the intel-omix package to run PyTorch, and additionally install intel-omix-dev if you plan to build PyTorch from source.
When to use OMIX vs. the Driver + Deep Learning Essentials path
OMIX support in PyTorch is experimental. For production use, prefer the Driver + Intel® Deep Learning Essentials path.
| Scenario | Recommended path |
|---|---|
| Intel® Arc™ Pro B-Series on Ubuntu 24.04, want a single install | OMIX (this section, experimental) |
| Any Data Center GPU (Max Series) | Driver + Intel® Deep Learning Essentials (sections above) |
| Any Client GPU other than Arc Pro B-Series | Driver + Intel® Deep Learning Essentials (sections above) |
| Any Windows configuration | Driver + Intel® Deep Learning Essentials (sections above) |
Where to go next?
After installing Intel GPU drivers and the two support packages, 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.