If you have an Intel graphics card (Arc A-series, Iris Xe, or UHD Graphics), you can accelerate model inference using SYCL through Intel’s oneAPI toolkit. This unlocks your iGPU or dGPU for much faster performance than CPU-only.
Supported Intel GPUs
Family
Examples
Notes
Intel Arc (Alchemist)
A770, A750, A580, A380
Best performance — dedicated GPU
Intel Iris Xe
Integrated in 11th-13th gen Core
Good for small models (≤3B)
Intel UHD Graphics
Older integrated graphics
Limited — small quantized models only
Intel Arc Battlemage
B580, B570
Supported — newer GPUs
What is SYCL?
SYCL is a cross-platform programming model that lets code run on CPUs, GPUs, and other accelerators. Intel’s oneAPI implements SYCL for their hardware. In llama.cpp, the SYCL backend (GGML_SYCL=ON) is what lets your Intel GPU accelerate inference.
The key flag is -DGGML_SYCL=ON. At build time, you also choose which Intel GPU runtime to target:
-DGGML_SYCL_TARGET=INTEL — for Intel Arc, Iris Xe, UHD (most users)
Installation: Run the installer. On the component selection screen, ensure “Intel oneAPI DPC++/C++ Compiler” and “Intel® oneAPI DPC++ Library” are selected. A full install is ~4 GB; you can deselect everything else to save space.
Environment setup: After install, run this once per terminal session:
C:\Program Files (x86)\Intel\oneAPI\setvars.bat
Or search for “Intel oneAPI Command Prompt” in the Start Menu — it opens a pre-configured terminal.
Verification:
icpx --version
Step-by-Step Installation
Use the Intel oneAPI Command Prompt (or run setvars.bat in a regular terminal).
If your system has both an Intel iGPU and Arc dGPU, llama.cpp selects the first device by default. To choose a specific device, set the environment variable:
$env:GGML_SYCL_DEVICE="0" # First device (usually dGPU)$env:GGML_SYCL_DEVICE="1" # Second device (usually iGPU)
Run llama-cli.exe with --verbose to see device numbering.
Troubleshooting
“icpx not found” — You haven’t run setvars.bat or opened the oneAPI command prompt. Ensure the oneAPI environment is loaded.
“Level Zero driver not found” — Your Intel GPU driver is outdated. Update via the Intel Driver & Support Assistant.
Compilation is very slow — First-time SYCL builds compile GPU kernels; this is expected. Subsequent builds are faster.
Out of memory at runtime — Intel iGPUs share system RAM. Use a smaller model or lower quantization (Q4_K_M or Q3_K_M). Reduce -ngl to offload fewer layers.