Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

rocprof-compute-roofline

БесплатноБез исполняемых скриптовНе проверен

Collects and reads rocprof-compute roofline data to place an AMD GPU kernel against the hardware's peak compute and peak bandwidth ceilings. Use when the user…

amdот amd★ 523 звезды на GitHub

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

Roofline analysis

A roofline places a kernel's arithmetic intensity against two measured ceilings, peak compute and peak bandwidth, and answers one question: which of the two is the limit.

Run rocprof-compute profile --help and rocprof-compute analyze --help before choosing flags. Do not open the generated HTML chart. The analyze table carries the same numbers in readable form.

Before you start

If command -v rocprof-compute finds the tool and rocprof-compute analyze --debug-verify-deps passes, skip this section. On ROCm 10.2, use --verify-deps instead of --debug-verify-deps.

Otherwise, check that ROCm and a GPU are present:

rocminfo
amd-smi list

If either command fails, ROCm is not installed or no GPU is visible. Stop and point the user to "Install the ROCm Core SDK" in the install guide. Installing rocprof-compute alone does not help.

Check the GPU against compatible accelerators. The table lists product families, so match the Marketing Name that rocminfo prints, and use the gfx name to confirm. If the GPU is not supported, stop and tell the user.

Then follow "Install the analyze mode dependencies" in the install guide, which installs rocprof-compute in a virtual environment of its own. Use the nightly index so the version matches these skills. Activate that environment with source <venv>/bin/activate before you run rocprof-compute, and confirm with rocprof-compute analyze --debug-verify-deps. If the application is a Python script, note the full path of its Python before you activate, and run the script with that path.

1. Collect

Collect only the roofline block:

rocprof-compute profile --name <workload_name> --roofline -- <application> <args>

On ROCm 10.2 and earlier, use -b roof instead of --roofline.

Collecting it runs microbenchmarks in addition to profiling the application, which takes extra time. They are skipped when -b or --set selects blocks that leave out roofline (block 4), or with the deprecated --no-roof, so an existing profile collected that way has no roofline data.

MI100 (gfx908) does not support the roofline microbenchmarks. Every other supported architecture does. On MI100 a full profile skips the benchmark and still succeeds, and selecting roofline fails, so a missing roofline there is not a mistake in how the profile was run. Never tell an MI100 user to re-profile to get roofline; use Speed-of-Light and the rocprof-compute-memory skill instead. Confirm support for a new architecture against compatible-accelerators.rst.

--roofline-device selects the GPU for the roofline microbenchmarks. It does not choose which GPU the application runs on; use HIP_VISIBLE_DEVICES for that.

See standalone roofline for two more options:

  • --roofline selects the roofline block; used alone, it collects only roofline data.
  • --roofline-bench-only runs only the microbenchmarks, without an application.

On ROCm 10.2 and earlier, these options are named --device, --roof-only and --bench-only.

Collect only what the question needs

Never run a full profile. It replays the application once per counter pass and also runs the roofline benchmarks.

  • List what this GPU can collect with rocprof-compute --list-metrics, and a block's metrics with rocprof-compute --list-metrics <alias>. On ROCm 10.2 and earlier, use --list-blocks <gfx_arch> and --list-metrics <gfx_arch>. Pass -b only the block aliases, block ids, or metric ids (for example 2.1.0) the question needs. Aliases differ by architecture.
  • --set <set_name> collects a predefined topic in one pass. rocprof-compute profile --list-sets lists the sets.
  • Add -k <kernel_name> when the user names the kernels that matter.
  • Unless the question is about roofline, select blocks with -b and leave out block 4 (roof), so the roofline benchmark is skipped.
  • --iteration-multiplexing spreads counters over repeated dispatches of each kernel with the same launch parameters, so it only helps when each profiled kernel runs many times with the same launch parameters. Pair it with -k. See Iteration multiplexing in [profile mode](https://github.com/ROCm/rocm-systems/blob/d46f9b4416abca78eede7cbe8ed8c567
Полный SKILL.md на GitHub

Установить rocprof-compute-roofline в Claude Code и Claude Desktop

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

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

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

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

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

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

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

.federated.jsonevals/evals.jsonevals/extended_evals.jsonevals/machine.ymlevals/samples/mat_mul_max.hipevals/samples/vcopy.cppskill-card.md

FAQ

Что делает скилл rocprof-compute-roofline?

Collects and reads rocprof-compute roofline data to place an AMD GPU kernel against the hardware's peak compute and peak bandwidth ceilings. Use when the user asks whether a kernel is compute-bound or memory-bound, asks about arithmetic intensity or FLOPs per byte, asks how much performance is left on the table, or asks for a roofline. Not for CUDA tools, Windows, or per-instruction analysis.

Как установить скилл rocprof-compute-roofline?

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

Скилл rocprof-compute-roofline запускает скрипты?

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

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

Сравнить rocprof-compute-roofline с