rocprofiler-systems-choosing-a-profiling-preset
Recommends which rocprofiler-systems runtime profiling preset (balanced, trace-gpu, trace-hpc, sys-trace, workload-trace, etc.) to pass to `rocprof-sys-run…
от amd★ 523 звезды на GitHub
Установить rocprofiler-systems-choosing-a-profiling-preset в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Choosing a Profiling Preset
Recommends one of rocprofiler-systems' built-in runtime profiling presets for a described workload, and returns the exact command to run it.
Prerequisites
None to make a first recommendation from the table below. To confirm what a preset
sets (see "Confirm with --explain"), and to run the command, rocprof-sys-run or
rocprof-sys-sample must be installed or built.
Version check
Presets need ROCm Systems Profiler 1.6.0 or newer (ROCm 7.13.0). Check with
rocprof-sys-run --version, whose first line reads rocprof-sys-run v<major>.<minor>.<patch> ....
| Installed version | What to tell the user |
|---|---|
| 1.6.0 or newer | --preset=<name>, --list-presets and --explain=<name> all work. |
| 1.5.x (ROCm 7.12.0) | Presets exist only as --<name> flags (for example --balanced), with no --preset=, --list-presets or --explain. Give that form and suggest upgrading. |
| Older than 1.5.0 | No presets. Suggest upgrading, or configure settings by hand. |
A newer preset name may be missing from an older build, so --list-presets is the list
of what the installed version supports. If the version cannot be checked, give the
--preset= command and say it needs 1.6.0 or newer.
Terminology
"Trace" and "tracing" mean two different things here. Keep them apart in every answer.
| Term | Meaning | Setting |
|---|---|---|
| Perfetto trace output | Writes a timeline file in Perfetto format | ROCPROFSYS_TRACE |
| rocPD output | Writes a rocPD database | ROCPROFSYS_USE_ROCPD |
| Profile output | Writes timemory profile files (flat or call-stack based) | ROCPROFSYS_PROFILE |
| Call-stack sampling | Samples the CPU call stack at a fixed frequency | ROCPROFSYS_USE_SAMPLING |
| API tracing | Intercepts and records the calls of one API | see below |
API tracing is chosen per API: ROCm (ROCPROFSYS_ROCM_DOMAINS), MPI
(ROCPROFSYS_USE_MPIP), RCCL (ROCPROFSYS_USE_RCCLP), OpenMP (ROCPROFSYS_USE_OMPT)
and Kokkos (ROCPROFSYS_USE_KOKKOSP). ROCm API tracing is on in every built-in preset,
by default for the HIP runtime API, ROCTx markers, kernel dispatches, memory copies and
scratch memory. A preset may narrow or widen that set, and --rocm=<domains> overrides it.
API tracing is separate from output selection. A preset's tracing.enabled: false (or
ROCPROFSYS_TRACE=false) turns Perfetto trace output off, not API tracing. The collected
data goes to whichever outputs are on: Perfetto, rocPD or profile files. Never say a
preset "has tracing off" without saying which of these you mean.
Preset reference
A routing aid only: it says which preset fits which need, not exactly what each one sets.
The installed binary is the source of truth for that (see "Confirm with --explain").
| Preset | Category | Use case |
|---|---|---|
balanced |
general | Recommended default, moderate overhead |
profile-only |
general | Lowest overhead flat profile (production) |
detailed |
general | Maximum depth, high overhead |
trace-gpu |
gpu | GPU activity timeline (kernel dispatch, memory copies) |
trace-hw-counters |
gpu | GPU hardware counters (occupancy, VALU utilization) |
workload-trace |
gpu | AI/ML training, long-running GPU/HPC workloads |
trace-hpc |
hpc | Compute-intensive MPI/OpenMP/Kokkos/RCCL apps, with CPU counters (PAPI) |
trace-openmp |
hpc | OpenMP GPU target-offload apps |
profile-mpi |
hpc | MPI communication latency, flat profile, no Perfetto trace |
sys-trace |
tracing | Debugging runtime-layer interactions, widest ROCm API tracing (HIP, HSA, ROCTx, RCCL) |
runtime-trace |
tracing | Same as sys-trace without HSA/compiler APIs |
How to choose
Resolve these in order; the first question that narrows to a single preset wins. Do not require the user to name a runtime such as MPI before a step applies.
API tracing or debugging. Questions about HIP, HSA or runtime-layer behavior (e.g. "why is my HIP call behaving oddly", "what's HSA doing under the hood") →
sys-trace(full ROCm API tracing), orruntime-tracewhen HSA and compiler API noise should be left out.One named measurement.
- GPU hardware counters such as occupancy or VALU utilization →
trace-hw-counters. - MPI communication latency is the only concern, no Perfetto trace file needed →
profile-mpi. - OpenMP GPU target-offload kernels →
trace-openmp.
- GPU hardware counters such as occupancy or VALU utilization →
Long-running GPU work. AI/ML training, or a long-running GPU-accelerated HPC job that needs MPI and RCCL API tracing and a large Perfetto trace buffer →
workload-trace. A training job qualifies even if it never mentions MPI, and it wins over step 4 when the prompt also names MPI or OpenMP.HPC runtimes. A compute-intensive MPI, OpenMP, Kokkos or RCCL application →
trace-hpc. It writes a Perfetto trace, traces those runtimes' APIs and sets CPU hardware-counter events (PAPI). If the user wants neither the tr
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- .federated.json
- evals/evals.json
- evals/machine.yml
- skill-card.md
FAQ
Что делает скилл rocprofiler-systems-choosing-a-profiling-preset?
Recommends which rocprofiler-systems runtime profiling preset (balanced, trace-gpu, trace-hpc, sys-trace, workload-trace, etc.) to pass to `rocprof-sys-run --preset=<name>` or `rocprof-sys-sample --preset=<name>` based on the user's workload and profiling goal, and returns the ready-to-run command. Use when the user asks "which preset should I use", describes a workload (GPU kernel, MPI, OpenMP, AI/ML training, production overview) and wants profiling guidance, or invokes `rocprof-sys-run`/`rocprof-sys-sample` without picking a preset. Do NOT use for CMake build presets (`cmake --preset debug|release|ci`) used to configure/compile rocprofiler-systems itself — that is a build-configuration concern, not a profiling-run concern.
Как установить скилл rocprofiler-systems-choosing-a-profiling-preset?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rocprofiler-systems-choosing-a-profiling-preset запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…