PyTorch on Intel Arc: Install and Use Guide
In this article
You can run PyTorch on an Intel Arc GPU, but not with the standard pip package: you need Intel's extension for PyTorch, which adds XPU device support on top of a normal PyTorch install. The short version is that you install a recent Intel GPU driver, install the Intel oneAPI runtime pieces the extension expects, install PyTorch and then the matching intel-extension-for-pytorch wheel, and verify with a small tensor test that reports xpu as available. Everything below assumes Windows 11 with an Arc discrete GPU (A-series or B-series) and a 64-bit Python install; Linux works too but the driver situation is different, so the steps here are written for Windows and note where Linux diverges.
What You'll Need
- A Windows 11 PC (or a recent Linux distribution) with an Intel Arc discrete GPU installed and recognised by the system.
- The current Intel Arc graphics driver, installed from Intel's official download page or through your PC maker's update tool. Old drivers are the single most common cause of failures.
- A 64-bit Python installation, version 3.10 or 3.11 for the smoothest wheel availability. Avoid the Microsoft Store build of Python; use the installer from python.org.
- Pip and a virtual environment (venv or conda). Installing into a clean environment makes it far easier to back out if a wheel does not match.
- Enough disk space for the PyTorch wheels, which are large, plus the Intel runtime packages.
- Optional but useful: the Intel oneAPI Base Toolkit, which supplies the runtime libraries the extension links against if the pip-installed runtime is not enough.
Step-by-Step
- Update the GPU driver first. Open Intel's driver support page, download the latest Arc driver for your card, and install it. Reboot. Confirm in Task Manager under the Performance tab that your Arc GPU appears and shows a driver version. If it does not appear at all, stop here and fix that before touching Python.
- Confirm your Python version. Open a terminal and run
python --version. If you see 3.12 or newer and the Intel wheels for your chosen PyTorch version are not published for it, install Python 3.11 alongside and create your environment with that interpreter. Wheel availability changes over time, so check the Intel extension's install page for the supported combination rather than assuming. - Create a clean virtual environment. Run
python -m venv arc-env, then activate it witharc-env\Scripts\activateon Windows (on Linux,source arc-env/bin/activate). Every later command should run inside this environment. - Upgrade pip. Run
python -m pip install --upgrade pip. Old pip versions sometimes refuse or mis-resolve the large PyTorch wheels. - Install PyTorch. Use the official selector on pytorch.org to get the exact command for a CPU build on Windows. A CPU build is correct here: the Arc support comes from the Intel extension, not from a CUDA wheel. Run the command it gives you, which looks like
pip install torch torchvision torchaudio. - Install the Intel extension for PyTorch. On the Intel extension's GitHub releases or install page, find the wheel that matches your PyTorch version and Python version, then install it with pip, for example
pip install intel-extension-for-pytorchfollowed by the version-specific index URL Intel documents. Do not mix a wheel built for a different PyTorch minor version; it will import but fail at runtime. - Install the Intel runtime dependencies. The extension needs oneAPI runtime libraries. The simplest route on Windows is to install the Intel oneAPI Base Toolkit using its installer, which places the DLLs where the extension can find them. If you prefer pip-only, install the
intel-sycl-rtand related runtime packages Intel lists for your version. - Verify the install. In the activated environment, run a short script: import torch, import intel_extension_for_pytorch, then print
torch.xpu.is_available()andtorch.xpu.get_device_name(0). A True result and your Arc model name mean the stack is working. - Move a model to the GPU. In your code, replace
.cuda()with.to("xpu"), and replacetorch.cudacalls with theirtorch.xpuequivalents, for exampletorch.xpu.synchronize()andtorch.xpu.empty_cache(). Mixed-precision training usestorch.xpu.amp.autocastrather than the CUDA autocast context. - Run a small benchmark before a real job. Train a tiny model or run a few forward passes and watch Task Manager's GPU tab. If GPU utilisation stays near zero while the CPU is pinned, the tensors are still on the CPU and you have missed a device call.
Common Mistakes
The biggest one is installing a CUDA build of PyTorch and expecting Arc to appear. CUDA wheels only see NVIDIA hardware; on an Arc machine you want a plain build plus the Intel extension. The second is a version mismatch between the PyTorch wheel and the extension wheel, which usually shows up as an import error or an immediate crash on the first XPU operation rather than at install time. Third, people skip the driver update and then chase Python errors for hours. Fourth, installing into the system Python instead of a virtual environment makes conflicts almost impossible to unpick. Finally, leaving tensors on the CPU and only moving the model is a classic: every input, label tensor and hidden state also has to be on the same device as the model.
Tips
Write your device selection once, at the top of your script, as a variable that checks torch.xpu.is_available() and falls back to CPU, then pass that variable everywhere. Keep a note of the exact PyTorch and extension versions that worked, because upgrading one without the other is how working setups break. For memory errors, reduce batch size first and call torch.xpu.empty_cache() between runs. If you use conda, prefer a fresh environment per project rather than layering packages into a base environment. And when a model runs but is slow, check whether the operation is actually supported on XPU; some custom kernels fall back to CPU silently.
Troubleshooting
If torch.xpu.is_available() returns False, work in this order: confirm the GPU shows in Task Manager, confirm the driver is current, confirm you are in the right virtual environment, then reinstall the extension wheel matching your exact PyTorch version. If you get a DLL load failure on Windows, the oneAPI runtime is missing or not on the path; reinstall the Base Toolkit and reboot. If the extension imports but crashes on the first operation, you almost certainly have a version mismatch, so uninstall both packages and reinstall them as a matched pair. If training runs but is slower than the CPU, check that all tensors are on xpu and that you are not calling .cpu() inside the loop, which forces a transfer every step. If a specific model fails with an unsupported operation, set the fallback behaviour the extension documents or run that layer on CPU. Before reinstalling Python or wiping an environment, remember that deleting the environment loses every package in it, so note your working versions first.
Frequently Asked Questions
Does PyTorch support Intel Arc out of the box?
No. The standard PyTorch install targets CPU and, in CUDA builds, NVIDIA GPUs. Arc support comes through Intel's extension for PyTorch, which adds the XPU device backend.
Do I need CUDA installed?
No, and you should not install a CUDA build for this. CUDA is NVIDIA-specific and irrelevant to an Arc card.
Can I use the same code I wrote for CUDA?
Mostly, with edits. Replace .cuda() with .to("xpu") and swap torch.cuda calls for torch.xpu equivalents. Libraries that hard-code CUDA will need their own XPU-aware versions.
Does it work on integrated Intel graphics?
The extension targets Intel GPUs generally, but performance and support are aimed at Arc discrete cards. Integrated graphics may work for small tests but is not a sensible target for training.
Why does my model still run on the CPU?
Because the tensors were never moved. Moving the model is not enough; inputs, labels and any tensors created inside the training loop must also be created on or moved to the XPU device.
Is Linux supported?
Yes, Intel publishes Linux instructions and wheels, but driver installation differs from Windows and depends on your distribution's kernel and graphics stack. Follow Intel's Linux-specific guidance rather than the Windows steps above.