Command Palette

Search for a command to run...

Назад к скиллам
скилл № 83323

vtune-gpu-hotspots

Run and interpret Intel VTune Profiler gpu-hotspots analysis: inside-the-kernel GPU performance on Intel GPUs, including XVE/EU activity and stalls…

БесплатноБез исполняемых скриптов
intelот intel★ 54 звезды на GitHub

Установить vtune-gpu-hotspots в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

VTune GPU Compute / Media Hotspots

Looks inside GPU kernels: are the execution units busy, and if not, what are they waiting for. Run this after vtune-xpu-offload has established that the device — not the host and not the transfers — is the limiter.

  • Knobs, modes, reports: references/knobs-and-reports.md
  • Checked against VTune 2026.6 on Arc Pro B70 in an A/B test with and without this skill. Run plain vtune commands; check knob and report names with vtune -help collect gpu-hotspots and vtune -help report <name>.

1. When to use

  • xpu-offload showed GPU utilization > 80% and the wall clock is still too long.
  • One or a few compute tasks dominate GPU time and you need to know why.
  • The user asks about EU occupancy, stalls, SIMD efficiency, or GPU cache behaviour.
  • You need per-source-line or per-instruction attribution inside a kernel.
  • Media / rendering pipelines where fixed-function and EU work must be separated.

Do not use it when:

  • The GPU is idle or under-used → vtune-xpu-offload first. Optimizing a kernel that runs 12% of the time is wasted effort.
  • Transfers dominate → vtune-xpu-offload.
  • You do not yet know which kernel matters → get that from xpu-offload, then come back with computing-tasks-of-interest.

2. Preconditions

  • Intel GPU with the driver stack in place, and GPU performance metrics access. On Linux this commonly needs dev.i915.perf_stream_paranoid=0 (i915) or dev.xe.observation_paranoid=0 (xe) and membership in the render/video group. Run vtune-self-checker.sh (in the VTune bin64 folder) first and report the exact gate if metrics are unavailable — do not present empty columns as "no stalls".
  • Leave start-up out. Model loading, compilation and warm-up dominate a whole-run profile and make the GPU look idle. Start with -start-paused and resume around the region you care about (ITT __itt_resume, or vtune -command resume -r <dir>). Summary percentages are averaged over the whole collection, paused time included.
  • Time it once without VTune. The profiled run is slower (tracing adds host time per kernel launch). Compare speeds and compute "GPU busy" against the un-profiled time.
  • Two-phase workflow: characterization mode first (cheap, whole-application), then source-analysis mode on one named kernel (expensive, targeted).
  • Device debug info in the kernel binary for source-level attribution. JIT library kernels (oneDNN, Triton) have none.

3. Collect

Phase 1 — characterization (find the expensive kernel and its stall profile):

# Overview: EU activity, occupancy, stall reasons, GPU bandwidth
vtune -collect gpu-hotspots -r <dir> -- ./sycl_app

# With host memory bandwidth context
vtune -collect gpu-hotspots -knob collect-memory-bandwidth=true -r <dir> -- ./app

# Instruction-count characterization instead of the overview metric set
vtune -collect gpu-hotspots -knob characterization-mode=instruction-count -r <dir> -- ./app

Phase 2 — source analysis on the kernel identified in phase 1. Start with stall-sampling: on VTune 2026.6, bb-latency and characterization-mode=instruction-count crashed on oneDNN JIT kernels (exit 4, "GTPin ERROR", "Data file is corrupted"), while stall-sampling worked.

# Stall sampling: stall counts per kernel (and per line when source is available)
vtune -collect gpu-hotspots -knob gpu-profiling-mode=source-analysis \
      -knob source-analysis=stall-sampling \
      -knob computing-tasks-of-interest=<kernel_name> -r <dir> -- ./app

# Basic-block latency: which regions of the kernel cost the most (own SYCL kernels)
vtune -collect gpu-hotspots -knob gpu-profiling-mode=source-analysis \
      -knob source-analysis=bb-latency \
      -knob computing-tasks-of-interest=<kernel_name> -r <dir> -- ./app

# Memory latency: which accesses stall
vtune -collect gpu-hotspots -knob gpu-profiling-mode=source-analysis \
      -knob source-analysis=mem-latency \
      -knob computing-tasks-of-interest=<kernel_name> -r <dir> -- ./app

Additional variants:

# Finer stall sampling for short kernels
vtune -collect gpu-hotspots -knob gpu-sampling-interval=0.5 \
      -knob stall-reasons-sampling-interval=0.0002 -r <dir> -- ./app

# Steady state of a long run (resume from the program or with vtune -command resume)
vtune -collect gpu-hotspots -start-paused -r <dir> -- ./train.py

Power and frequency: on VTune 2026.6, -knob analyze-power-usage=true is accepted but gpu-hotspots records no power data ("plugin [power] was disabled because it doesn't support the given collection type"). Read the GPU's own counters instead: sysfs .../gt0/freq0/act_freq, .../throttle/reasons, hwmon energy1_input, or xpu-smi stats.

4. Knobs (VTune 2026.6 — re-verify with vtune -help collect gpu-hotspots)

Knob Default Values When to change it
gpu-profiling-mode characterization characterization, `sourc
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/knobs-and-reports.md

FAQ

Что делает скилл vtune-gpu-hotspots?

Run and interpret Intel VTune Profiler gpu-hotspots analysis: inside-the-kernel GPU performance on Intel GPUs, including XVE/EU activity and stalls, occupancy, GPU memory bandwidth and caches, SIMD use, stall-sampling source analysis, and per-kernel (computing-task) hotspots, with a bytes / time check against peak before any sampled metric. Use when the user wants VTune and asks which GPU kernels take the time or why a kernel is slow, usually after vtune-xpu-offload showed the device is the limit. Triggers on: vtune gpu-hotspots, -collect gpu-hotspots, GPU kernel slow in VTune, XVE stalls, EU occupancy, VTune GPU bandwidth. For torch.profiler traces use torch-xpu-profile; for unitrace use xpu-profile-unitrace; for a vLLM server use vtune-vllm.

Как установить скилл vtune-gpu-hotspots?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл vtune-gpu-hotspots запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить vtune-gpu-hotspots с