AMD GPU PyTorch profiler
Traces slow AMD GPU work back to the PyTorch or Triton layer that caused it, so you know exactly what to optimise.
Claude's review
7/10 Exact rocprof-compute commands for mapping AMD GPU kernels to PyTorch and Triton operators, with version flag differences, narrowed collection and interpretation.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Attributes AMD GPU kernel performance counters back to the PyTorch or Triton operators that launched them, using rocprof-compute ML API tracing. Use when the user asks which PyTorch layer or operator is slow, wants to map GPU kernels to model code, profiles a training or inference script, asks about torch.compile and Inductor kernels, or wants to select user-defined ROCTx regions from a traced Python profile. Not for CUDA tools, Windows, compiled non-Python binaries, or starting and stopping a profile at ROCTx ranges.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: rocprof-compute-torch-trace
description: Attributes AMD GPU kernel performance counters back to the PyTorch or Triton operators that launched them, using rocprof-compute ML API tracing. Use when the user asks which PyTorch layer or operator is slow, wants to map GPU kernels to model code, profiles a training or inference script, asks about torch.compile and Inductor kernels, or wants to select user-defined ROCTx regions from a traced Python profile. Not for CUDA tools, Windows, compiled non-Python binaries, or starting and stopping a profile at ROCTx ranges.
---
# Map GPU kernels to PyTorch operators
Profiling a PyTorch model with counters alone gives kernel names, which say
little about the model. Torch tracing annotates the run so each kernel can be
traced back to the operator that launched it.
Torch and Triton tracing are experimental. Every command needs
`--experimental`, and option names can change between releases, so run
`rocprof-compute profile --experimental --help` first.
## 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:
```bash
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](https://github.com/ROCm/rocm-systems/blob/d46f9b4416abca78eede7cbe8ed8c567010333c6/projects/rocprofiler-compute/docs/install/core-install.rst). Installing rocprof-compute
alone does not help.
Check the GPU against
[compatible accelerators](https://github.com/ROCm/rocm-systems/blob/d46f9b4416abca78eede7cbe8ed8c567010333c6/projects/rocprofiler-compute/docs/reference/compatible-accelerators.rst).
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
...From amd's repository, MIT licence.
Related skills
-
Checked
Rust code review
Reviews Rust code for idiom, errors, safety and API design, with a ranked report and a fix for every finding.
7/101 credit -
Checked
Java Debugging Guide
Finds the cause of Java bugs and failing tests, and attaches a debugger safely in Maven, Gradle, Spring or Docker.
7/101 credit -
Checked
Python games with pygame
Builds and debugs 2D pygame games with a proper loop and delta time, so they run the same on any PC.
7/101 credit -
Checked
Go Benchmarking and Profiling
Writes Go benchmarks, profiles them with pprof and proves each speedup with benchstat before you claim it.
7/101 credit -
Checked
nvMolKit GPU cheminformatics
Writes nvMolKit code for GPU fingerprints, similarity and clustering, so molecule searches run far faster.
7/101 credit -
Checked
Modern Java Coding
Writes and reviews modern Java 21 and 25 code with records, sealed types, pattern matching and virtual threads.
7/101 credit