gpu-kernel-optimizer

Implement and optimize GPU kernels using PyTorch logic and DSLs.

71|22|Updated Jun 23, 2026
One-click install
npx skills add https://github.com/alibaba/atrex-kernel-agent --skill gpu-kernel-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gpu-kernel-optimizer
Source: https://github.com/alibaba/atrex-kernel-agent/tree/main
Command: npx skills add https://github.com/alibaba/atrex-kernel-agent --skill gpu-kernel-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3, git, jq, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill solves the complexity of manual GPU kernel optimization by providing a structured, profile-driven workflow that transforms PyTorch logic into high-performance GPU kernels while ensuring hardware-specific constraints are met.

Core Features & Use Cases

  • Profile-Driven Optimization: Uses Nsight Compute or ROCm profiling tools to identify and resolve performance bottlenecks.
  • Hardware-Aware Implementation: Integrates a local GPU knowledge base to ensure all performance targets and architectural decisions are grounded in verified hardware specifications.
  • Use Case: A developer needs to optimize a custom CUDA kernel for a specific H20 or MI300X GPU; this Skill manages the workspace, runs the Roofline analysis, and guides the iterative optimization loop until performance targets are achieved.

Quick Start

Use the gpu-kernel-optimizer skill to initialize a new optimization workspace for the kernel file named kernel_demo.py on the H20 platform.

Frequently Asked Questions about gpu-kernel-optimizer

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

FAQPage Schema
How do I optimize a PyTorch GPU kernel for specific hardware like H20 or MI300X?

To optimize PyTorch logic for specific hardware, this Skill bridges it with high-performance DSLs like CuteDSL or FlyDSL. It enforces hardware-spec compliance by sourcing all architectural metrics from a local knowledge base.

What is profile-driven GPU kernel optimization and how does it work?

Profile-driven GPU kernel optimization identifies and resolves bottlenecks using Nsight Compute or ROCm profiling tools. It facilitates iterative refinement through bottleneck analysis, Roofline modeling, and automated performance validation.

How do I identify performance bottlenecks in a custom CUDA or Triton kernel?

You can identify performance bottlenecks in a CUDA or Triton kernel by using Nsight Compute or ROCm profiling tools within an optimization workspace. This guides the iterative optimization loop until targets are achieved.

Do I need Python3 and git to run an automated GPU kernel optimization workspace?

Yes, you need Python3, git, and jq installed to run the automated GPU kernel optimization workspace. These dependencies are required to manage the workspace and execute the iterative optimization loop.

What is the best way to perform Roofline modeling for AMD ROCm kernels?

The best way to perform Roofline modeling for AMD ROCm kernels is using this Skill's structured workflow. It runs Roofline analysis and manages the iterative optimization loop to achieve performance targets.