Command Palette

Search for a command to run...

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

rocprof-compute-memory

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

Analyzes the AMD GPU memory hierarchy with rocprof-compute, covering the Memory Chart, vL1D and L2 caches, LDS bank conflicts, Infinity Fabric traffic, and…

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

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

Analyze the AMD GPU memory hierarchy

Use this after Speed-of-Light points at memory, or when the user asks about bandwidth, caches, or data movement directly.

Run rocprof-compute analyze --help before choosing flags.

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. Start with the Memory Chart

rocprof-compute analyze --path ./workloads/<name>/<gpu_model> --list-stats
rocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k <kernel_id> --memory-chart

On ROCm 10.2 and earlier, use -b memchart instead of --memory-chart.

The Memory Chart shows the whole hierarchy at once: requests issued, what each cache level served, and what reached HBM. Read it before opening any single cache level, because it tells you which level to open.

Always analyze one kernel at a time with -k.

If there is no workload yet, collect only the memory blocks:

rocprof-compute profile --name <workload_name> --memory-chart -b vl1d l2 lds -- <application> <args>

The cache aliases differ by architecture; for example, some GPUs name their caches gl0 and gl2.

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.
  • Tell the user which analysis panels the narrower profile leaves empty.

2. Open the level the chart points at

# Vector L1 data cache
rocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k <kernel_id> -b vl1d

# L2 cache
rocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k <kernel_id> -b l2

# L2 per channel, including Infinity Fabric read and write stalls
rocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k <kernel_id> -b l2_per_channel

# Local Data Share, including bank conflicts and unaligned stalls
rocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k <kernel_id> -b lds

# Address processing and data return, for coalescing behaviour
rocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k <kernel_id> -b tatd

# Scalar L1 data cache
rocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k <kernel_id> -b sl1d

Aliases are stable; numeric block ids are architecture-specific. List what this workload actually has with `--list-

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

.federated.jsonevals/evals.jsonevals/extended_evals.jsonevals/machine.ymlevals/samples/common.hevals/samples/gl2_backpressure.hipevals/samples/lds.hipevals/samples/vcopy.cppevals/samples/vrandom_access.cppevals/samples/vsequential_access.cppskill-card.md

FAQ

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

Analyzes the AMD GPU memory hierarchy with rocprof-compute, covering the Memory Chart, vL1D and L2 caches, LDS bank conflicts, Infinity Fabric traffic, and the experimental gfx950 memory bandwidth analysis. Use when the user asks about memory bandwidth, cache hit rates, coalescing, LDS conflicts, data locality, HBM traffic, or says a kernel is memory-bound. Not for CUDA tools, Nsight, Windows, host-memory leaks, GPU out-of-memory allocation failures, or system-wide tracing.

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

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

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

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

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

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