kernel-trace-analysis

Profile GPU kernels with rocprofv3 and generate optimization plans.

2|3|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/fsx950223/claude-stuff --skill kernel-trace-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kernel-trace-analysis
Source: https://github.com/fsx950223/claude-stuff/tree/main/.claude/skills/kernel-trace-analysis
Command: npx skills add https://github.com/fsx950223/claude-stuff --skill kernel-trace-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps identify and resolve performance bottlenecks in GPU kernels by profiling their execution, analyzing instruction traces, and providing actionable optimization suggestions.

Core Features & Use Cases

  • Kernel Profiling: Collect detailed performance statistics and instruction-level traces for GPU kernels using rocprofv3.
  • Bottleneck Identification: Pinpoint performance issues such as barrier stalls, idle cycles, and memory-bound operations.
  • Optimization Planning: Generate a prioritized plan with concrete steps to improve kernel performance.
  • Use Case: A developer has a slow GPU kernel and needs to understand why. They use this Skill to generate a trace, analyze the results, and receive a report detailing the exact instructions causing stalls and how to fix them.

Quick Start

Use the kernel-trace-analysis skill to profile the command 'python bench_pa.py --batch 32'.

Frequently Asked Questions about kernel-trace-analysis

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

FAQPage Schema
How do I profile GPU kernels to identify performance bottlenecks?

Profile GPU kernels by collecting instruction-level execution traces with rocprofv3. This analyzes barrier stalls, idle cycles, and memory-bound operations to pinpoint exact performance bottlenecks.

What is instruction-level trace analysis for ROCm GPU kernels?

Instruction-level trace analysis for ROCm kernels captures detailed execution statistics using rocprofv3. It examines specific instructions causing stalls and idle cycles to generate a prioritized optimization plan.

How do I generate an optimization plan for slow GPU kernels?

Generate an optimization plan by profiling the slow GPU kernel execution to collect instruction traces. The analysis identifies stall-causing instructions and provides concrete, actionable steps to resolve bottlenecks.

Can I use rocprofv3 to analyze memory-bound operations in my GPU kernel?

Yes, rocprofv3 analyzes memory-bound operations by collecting detailed performance statistics and instruction-level traces. It specifically detects memory-bound issues alongside barrier stalls and idle cycles.

Does GPU kernel profiling work with standard Python benchmarking scripts?

Yes, GPU kernel profiling supports standard Python benchmarking commands. You can profile executions like 'python bench_pa.py --batch 32' directly to collect the necessary performance traces.

What types of stalls can GPU kernel trace analysis detect?

GPU kernel trace analysis detects barrier stalls, idle cycles, and memory-bound operations. It profiles these execution bottlenecks at the instruction level to guide targeted kernel tuning.