# 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.

- Page: https://youraiskill.com/skill/amd-rocprof-compute-torch-trace
- What it does: 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.
- Niches: coding, data, machine-learning
- Licence: MIT
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions plus scripts (7 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
