Several of one GPU: <gpu>/<model>/<N>x-<engine>-<profile>.md with gpus, tp and pp (tp × pp = gpus) and a declared PCIe topology. Different GPUs: mixed/<setup>/, named after its cards, with the same layout as a GPU folder and a generated mixed/README.md. Runs must sit in their recipe's setup folder. Energy, and bandwidth for pipeline parallel or mixed, are left out where bench-standard measures one GPU only; docs/ bench-standard-gaps.md lists those gaps for the benchmarks repo. The wanted lists take the fewest of one GPU a model fits in. Demo: 2x Arc B580 with vLLM TP 2 and llama.cpp layer split for Qwen3.8-27B, -sm row as what lost, and Arc Pro B60 + Arc B580 mixed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.3 KiB
Host setup for Intel Arc
What every recipe assumes on the host. The engines (llama.cpp SYCL, vLLM XPU) bring their own oneAPI and Level Zero runtimes in their containers. The host needs the kernel driver, device access and Docker.
1. Kernel driver
Battlemage (B-series) needs the xe driver, which ships with current kernels. Check
that the card is there:
ls /dev/dri/ # card* and renderD* entries
lspci -k | grep -A3 -i 'vga\|display' | grep -i 'driver in use' # xe (or i915 on Alchemist)
2. Device access
Your user needs the render group, or containers started by your user can't open
the GPU:
sudo usermod -aG render,video "$USER" # log out and in again
Every recipe passes --device /dev/dri to Docker.
3. Resizable BAR
ReBAR must be on (BIOS: "Above 4G decoding" and "Resizable BAR"). Without it, Arc loses a lot of speed:
sudo lspci -vv -s "$(lspci | awk '/VGA.*Intel/ {print $1; exit}')" | grep -i -A2 'resizable bar'
bench.sh records ReBAR in the pcie note of every run.
4. Power limit and telemetry
xpu-smi reads power and energy during a benchmark, and sets the power limit:
xpu-smi discovery
xpu-smi stats -d 0 # power, clock, memory
sudo xpu-smi config -d 0 --powerlimit 200
The power limit changes prefill and concurrency numbers. bench.sh records it. If you
change it, say so in the result (--special-notes).
5. Several GPUs
- Lanes: every card should hang off the CPU, not the chipset. A second x16 slot is often x4 through the chipset, and tensor parallelism sends activations over PCIe after every layer. Check each card:
for d in $(lspci -D | awk '/VGA.*Intel/ {print $1}'); do
echo "$d $(sudo lspci -vv -s $d | grep -o 'LnkSta: Speed [^,]*, Width x[0-9]*')"; done
- Device order:
xpu-smi discoverylists the Level Zero numbering.ZE_AFFINITY_MASKpicks and orders the cards a container sees. Splits like llama.cpp's-ts 2,1follow that order. - What bench.sh misses: it records PCIe, ReBAR and power of the first GPU only. Write
the others into
--special-notes, and the links into the recipe'stopology.
6. Models
The recipes mount /models into the container. Download the standard files there,
as each recipe shows, and check the hash: bench.sh rejects any other file.