rocprofiler-systems-discovering-profiling-options
БесплатноБез исполняемых скриптовНе проверенAnswers questions about what rocprofiler-systems configuration options exist and how to use them — e.g. "what hardware counters are available on my system"…
от amd★ 523 звезды на GitHubОб этом скилле
Discovering Profiling Options
Maps a "what's available" or "how do I configure X" question to the exact
rocprof-sys-avail / rocprof-sys-run --help=<topic> command that answers it.
rocprof-sys-avail is self-updating and authoritative — prefer running it over
reciting static documentation.
Prerequisites
A working rocprof-sys-avail binary, built/installed alongside
rocprof-sys-run/rocprof-sys-sample. If it is not on PATH, run
source <install-prefix>/share/rocprofiler-systems/setup-env.sh first.
Discovery command reference
| User question | Command | Notes |
|---|---|---|
| What settings/env vars exist, with descriptions? | rocprof-sys-avail -S -bd |
-b suppresses the current-value/availability column, -d adds the description column |
| What hardware counters are available on my system? | rocprof-sys-avail -H -bd -A |
-A/--available restricts to counters this machine can actually use; add -c CPU or -c GPU to split by device |
| What ROCm APIs can be traced? | rocprof-sys-avail -bd -r ROCM_DOMAINS |
Regex-filters settings to the ROCPROFSYS_ROCM_DOMAINS row, listing every valid domain (hip_runtime_api, hsa_api, kernel_dispatch, rccl_api, kfd_events, ...) |
| What operations/API calls exist within one ROCm domain? | rocprof-sys-avail --list-domains then rocprof-sys-avail --list-operations <domain> |
e.g. --list-operations hip_runtime_api lists individual HIP calls. Only domains printed by --list-domains are accepted: composites must be expanded (hip_api → hip_runtime_api, hip_compiler_api; hsa_api → hsa_core_api, hsa_amd_ext_api, hsa_image_ext_api, hsa_finalize_ext_api; kfd_events → the kfd_* domains; roctx → marker_api), and kernel_dispatch has no operation list |
| What Timemory components can I collect? | rocprof-sys-avail -C -bd |
add -A to restrict to components usable on this build |
| What settings exist for one topic (tracing, sampling, output, ...)? | rocprof-sys-avail --list-categories then rocprof-sys-avail -S -bd -c settings::<category> |
category names don't always match plain English — it's settings::trace, not settings::tracing — so always check --list-categories first |
| What GPU power/temp/utilization metrics can I sample? | rocprof-sys-avail -bd -r AMD_SMI_METRICS |
surfaces ROCPROFSYS_AMD_SMI_METRICS choices (busy, temp, power, mem_usage, ...) |
What CLI flags does rocprof-sys-run have for topic X? |
rocprof-sys-run --help=<topic> |
topics: preset, general, tracing, profiling, output, sampling, process, counters, backend, execution, debug, misc, gpu, cpu, rocm, parallel |
| How do I persist chosen settings across runs? | rocprof-sys-avail -G ~/.rocprof-sys.cfg [--all] then export ROCPROFSYS_CONFIG_FILE=~/.rocprof-sys.cfg |
--all includes descriptions/categories in the generated file; formats are txt (default), json, xml via -F |
Terminology
"Trace" and "tracing" overlap in the output, so map the name you see to what it controls before answering:
| Name you see | What it controls |
|---|---|
ROCPROFSYS_TRACE, settings::trace and --help=tracing (its tuning options) |
Perfetto trace output |
ROCPROFSYS_USE_ROCPD |
rocPD output |
ROCPROFSYS_PROFILE, --help=profiling |
timemory profile output |
ROCPROFSYS_USE_SAMPLING, --help=sampling |
call-stack sampling |
ROCPROFSYS_ROCM_DOMAINS, --help=rocm |
ROCm API tracing |
ROCPROFSYS_USE_MPIP, _RCCLP, _OMPT, _KOKKOSP |
MPI, RCCL, OpenMP and Kokkos API tracing |
"Tracing" means API tracing (recording the calls of one API); "trace output" means the Perfetto file. A question like "what tracing options are there?" usually means the ROCm domains, so ask or answer both if it is unclear.
How to answer a discovery question
- Identify which axis the question is about: settings/env-vars, Timemory components, hardware counters, ROCm API domains, GPU metrics, or CLI flags.
- Pick the matching row from the table above.
- Run the command (or hand it to the user) and report the relevant rows —
don't dump the entire table if the question was narrow; combine with
-r <regex>/-c <category>/-Ato narrow first. - If the result is still broad, suggest adding
-A/--available(installed/ supported only) or a category/regex filter.
Persisting configuration
Once the right settings are identified, freeze them into a config file instead of re-typing environment variables every run:
rocprof-sys-avail -G ~/.rocprof-sys.cfg --all # --all adds descriptions/categories
export ROCPROFSYS_CONFIG_FILE=~/.rocprof-sys.cfg
Select the format with -F txt|json|xml; they load differently:
txt(default) andxml: load withROCPROFSYS_CONFIG_FILE.json: this is a hierarchical preset file. It does not load throughROCPROFSYS_CONFIG_FILE(the run fails with "missing the expected 'rocprofiler-systems' root object"); load it with `rocprof-sys-r
Установить rocprofiler-systems-discovering-profiling-options в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл rocprofiler-systems-discovering-profiling-options?
Answers questions about what rocprofiler-systems configuration options exist and how to use them — e.g. "what hardware counters are available on my system", "what ROCm APIs can I trace", "what settings control sampling/output", "how do I persist my configuration" — by mapping the question to the right `rocprof-sys-avail` or `rocprof-sys-run --help=<topic>` command. Use when the user wants to discover or explore ROCPROFSYS_* settings, Timemory components, hardware counters, ROCm API tracing domains, or GPU metrics, rather than apply them. Do NOT use this for picking a starting --preset for a workload — that's `choosing-a-profiling-preset`.
Как установить скилл rocprofiler-systems-discovering-profiling-options?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rocprofiler-systems-discovering-profiling-options запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic