xpu-discover
Inventory Intel GPUs (Arc, Arc Pro) on a Linux host. Detect devices, collect driver, firmware and component-health evidence, list processes using each XPU…
от intel★ 54 звезды на GitHub
Установить xpu-discover в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
xpu-discover
xpu-smi is Intel's nvidia-smi. Sees only Intel GPUs (Arc, Arc
Pro, Battlemage, Flex, Max).
Quickstart
Subcommands and flags differ between builds; xpu-smi -h lists what the
installed one supports (prefer -h: some builds reject help). Report an
absent subcommand rather than retrying it.
Run in order. If step 1 fails or has no devices, stop.
xpu-smi discovery # 1. inventory
xpu-smi health -l # 2. component health (power, frequency, temp)
journalctl -k --no-pager | grep -iE 'guc|huc|iommu|drm|\bxe\b|i915|level.?zero'
# 3. driver/firmware log evidence
xpu-smi ps # 4. processes using each GPU
xpu-smi stats -d 0 # 5. utilisation snapshot
xpu-smi dump --device 0 --metrics MEMORY,POWER --interval 1
# 6. live CSV stream (Ctrl-C)
bash scripts/check_pcie_link.sh # 7. PCIe link of each card (no root)
The xpu-smi commands accept -j for JSON output (use when parsing).
Steps 2, 3 and 7 are all needed: health covers power and thermals, the
kernel log covers driver and firmware, and step 7 the PCIe link. None of them
certifies health, and a command that runs is not a GPU that works.
CUDA -> Intel cheat sheet
| CUDA | Intel |
|---|---|
nvidia-smi |
xpu-smi discovery |
nvidia-smi -L |
xpu-smi discovery -j |
nvidia-smi pmon -c 1 |
xpu-smi ps |
nvidia-smi dmon |
xpu-smi dump --device <id> --metrics MEMORY,POWER --interval 1 |
nvidia-smi --query-gpu=... |
xpu-smi stats -d <id> -j |
nvidia-smi topo -m |
xpu-smi topology -m |
CUDA_VISIBLE_DEVICES=0 |
ZE_AFFINITY_MASK=0 |
cuda-memcheck |
no Arc equivalent: run a real workload (torch-xpu-run) |
CUDA refugee footgun: CUDA_VISIBLE_DEVICES=99 silently hides
all GPUs; ZE_AFFINITY_MASK=99 crashes the Level Zero loader
with an assertion. Always check xpu-smi discovery for valid IDs
(start at 0) before setting the mask.
What each subcommand returns
discovery — inventory
One stanza per Intel GPU. Key fields:
Device ID — small integer, used as
-dand asZE_AFFINITY_MASKvalue.PCI BDF Address — stable across reboots (e.g.
0000:36:00.0).DRM Device —
/dev/dri/card0, used in--devicefor Docker.Device Name — Battlemage shows
Intel(R) Graphics [0xe2XX]rather than the marketing name; driver quirk, not a problem. Map the PCI device ID in brackets to the product SKU:PCI device ID Product SKU Die Confirmed by 0xe20bArc B580 G21 Intel spec page, pci.ids, lspci on hardware 0xe20cArc B570 G21 pci.ids 0xe211Arc Pro B60 G21 Intel spec page, pci.ids, lspci on hardware 0xe212Arc Pro B50 G21 Intel spec page, pci.ids 0xe222Arc Pro B65 G31 Intel spec page, pci.ids 0xe223Arc Pro B70 G31 Intel spec page, pci.ids, lspci on hardware Report an ID missing from this table as unknown rather than guessing a SKU.
Full table provided above. Cross-check with
lspci -d 8086: -nn(prints[8086:XXXX]).
Empty output -> kernel didn't enumerate any Intel GPU. See "Troubleshooting".
health -l — component health
Per-device status for power_health, frequency_health, core_temperature,
memory_temperature, memory_health. Read the statuses, not the exit code:
exit status and sensor support vary independently by build.
OK-> no problem reported in this sample; not a workload pass.Unknown, empty, or unsupported -> inconclusive, not healthy. Usual on Arc Pro B60/B70, where only power and frequency reportOK.Warning/Critical-> report the component and its value. The routing table below covers kernel-log categories, not sensor components.
If the aggregate call fails (unsupported temperature sensors can abort it), query components one at a time:
xpu-smi health -d 0 -c 3 # power
xpu-smi health -d 0 -c 4 # memory
xpu-smi health -d 0 -c 6 # frequency
Kernel-log scan — driver/firmware errors
Step 3 lists the GPU driver lines. To select messages for review, append
| grep -iE '\b(error|fail|warn|timed? ?out|reset|hang|wedged|fault)'
(the leading word boundary stops fault matching Default; no trailing
boundary, so errors, Resetting and Timedout match). This is triage, not
a fault detector: it selects benign resets and misses faults worded without
these keywords. No matches means only that nothing matched.
Read journalctl's stderr, and run it unpiped to see its exit status (step 3's
pipeline reports grep's): a failed read or no GPU driver lines means the log
is unavailable, not that the host is clean. Prefer
journalctl -k over dmesg, which can return nothing unprivileged under
kernel.dmesg_restrict=1. -k is the current boot; --since narrows it
and can hide earlier errors.
Correc
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/check_pcie_link.sh
FAQ
Что делает скилл xpu-discover?
Inventory Intel GPUs (Arc, Arc Pro) on a Linux host. Detect devices, collect driver, firmware and component-health evidence, list processes using each XPU, and read live utilisation.
Как установить скилл xpu-discover?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл xpu-discover запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…