kernel-perf-analysis

Collect timing, hardware counters, ATT traces, and memory-hierarchy data from AMD GPU kernels.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/leonling-ll/claude-skills --skill kernel-perf-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kernel-perf-analysis
Source: https://github.com/leonling-ll/claude-skills/tree/main/kernel-perf-analysis
Command: npx skills add https://github.com/leonling-ll/claude-skills --skill kernel-perf-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Identify performance bottlenecks in AMD GPU kernels by collecting timing data, hardware counters, ATT traces, and memory-hierarchy profiles across modes, enabling targeted optimizations.

Core Features & Use Cases

  • Multi-mode profiling (kernel-trace, counters, ATT, memory analysis) for AMD GPUs.
  • Provides MFMA efficiency, HBM/L1/L2 bandwidth insights, and LDS conflict detection.
  • Use cases: optimize GEMM kernels on CDNA3/4 and general Python kernels; produce actionable recommendations and regression-friendly reports.

Quick Start

Invoke /kernel-perf-analysis with your Python kernel to collect timing, counters, ATT traces, and memory-hierarchy data and generate a comparative performance report.

Frequently Asked Questions about kernel-perf-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify performance bottlenecks in AMD GPU kernels?

To identify performance bottlenecks in AMD GPU kernels, you need to collect timing data, hardware counters, ATT traces, and memory-hierarchy profiles. This automated analysis evaluates MFMA efficiency, memory bandwidth, and latency to generate actionable optimization recommendations.

What is the best way to profile GEMM kernels on CDNA3 architecture?

Profiling GEMM kernels on CDNA3 requires analyzing MFMA efficiency and memory bandwidth across multiple modes. The process collects ATT traces and hardware counters to detect LDS conflicts and generate regression-friendly reports for targeted kernel optimizations.

How does ATT trace decoding work for AMD GPU memory analysis?

ATT trace decoding for AMD GPU memory analysis works by capturing memory-hierarchy data to reveal HBM, L1, and L2 bandwidth insights. It requires an ATT decoder and Triton metadata to translate hardware traces into actionable latency and conflict detection reports.

Do I need rocprofv3 to analyze AMD GPU MFMA efficiency?

Yes, you need rocprofv3 to analyze AMD GPU MFMA efficiency. The profiling process requires rocprofv3 to collect hardware counters and ATT traces, which are then decoded alongside Triton metadata to produce accurate performance insights and optimization recommendations.

Can I use this AMD GPU profiling approach for general Python kernels?

Yes, you can use this AMD GPU profiling approach for general Python kernels. The multi-mode profiling applies to both GEMM-style kernels on CDNA3/4 and general Python kernels, collecting timing and memory-hierarchy data to generate comparative performance reports.

Why does my AMD GPU kernel show low memory bandwidth utilization?

Low memory bandwidth utilization in AMD GPU kernels often indicates bottlenecks detectable through HBM, L1, and L2 bandwidth analysis. Profiling with ATT traces and hardware counters identifies LDS conflicts and memory-hierarchy inefficiencies to guide targeted optimizations.