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★ 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:
--rooflineselects the roofline block; used alone, it collects only roofline data.--roofline-bench-onlyruns 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 withrocprof-compute --list-metrics <alias>. On ROCm 10.2 and earlier, use--list-blocks <gfx_arch>and--list-metrics <gfx_arch>. Pass-bonly the block aliases, block ids, or metric ids (for example2.1.0) the question needs. Aliases differ by architecture. --set <set_name>collects a predefined topic in one pass.rocprof-compute profile --list-setslists the sets.- Add
-k <kernel_name>when the user names the kernels that matter. - Unless the question is about roofline, select blocks with
-band leave out block 4 (roof), so the roofline benchmark is skipped. --iteration-multiplexingspreads 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
Установить rocprof-compute-roofline в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic