PyTorch* Prerequisites for Intel® GPUs

ID 827139
Updated 12/11/2025
Version
Public

author-image

By

Overview

This guide provides instructions for installing the prerequisites needed to run and build PyTorch 2.10 on Intel GPUs.

If you are compiling and using PyTorch 2.9, please refer to the prerequisite instructions specific to PyTorch 2.9.

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.

If you have access to an Intel GPU, follow the instructions below to choose the appropriate method to install.

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.

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.8331 WHQL Certified 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 Desktop Processors Series 2 with Intel® Arc™ Graphics (CodeName: Lunar Lake)
  • Intel® Core™ Ultra Mobile Processors Series 2 with Intel® Arc™ Graphics (CodeName: Arrow Lake-H)
  • Intel® Core™ Ultra Desktop Processors Series 3 with Intel® Arc™ Graphics (CodeName: Panther Lake)​​​

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 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.

  1. Make sure the necessary tools to add repository access are available:
    
    sudo apt update
    sudo apt install -y gpg-agent wget gnupg
  2. 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
    
  3. Update the APT package list and repository index:
    
    sudo apt update
    
  4. Use APT to install Intel® Deep Learning Essentials:
    
    sudo apt install intel-deep-learning-essentials-2025.3

Intel Deep Learning Essentials Installation for Intel Client GPUs

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-2025.3.1.11_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.

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.

1