tritonify

Optimize Triton and CUDA kernels using roofline-based trial-loop benchmarking.

4|2|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/IsNoobgrammer/skills-for-agents --skill tritonify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tritonify
Source: https://github.com/IsNoobgrammer/skills-for-agents/tree/main/skills/tritonify
Command: npx skills add https://github.com/IsNoobgrammer/skills-for-agents --skill tritonify

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the common failure mode of accepting sub-optimal performance from standard libraries by providing a rigorous, roofline-targeted optimization framework for Triton and CUDA kernels.

Core Features & Use Cases

  • Roofline-First Optimization: Systematically identifies bottlenecks (HBM bandwidth vs. compute) to ensure optimization efforts target the actual hardware limit.
  • Trial-Loop Methodology: Employs a structured, tree-based trial loop to iteratively improve kernel performance without stopping at local plateaus.
  • Use Case: Use this skill to optimize a custom attention kernel or fused loss function by measuring the Speed-of-Light bound and systematically eliminating HBM round-trips through operator fusion.

Quick Start

Invoke the tritonify skill to analyze the current kernel and begin the trial-loop optimization process for the specified hardware target.

Frequently Asked Questions about tritonify

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

FAQPage Schema
How do I optimize Triton and CUDA kernels to reach the GPU hardware limit?

To optimize Triton and CUDA kernels to the hardware limit, apply a roofline-based trial-loop methodology to systematically identify bottlenecks and maximize GPU hardware utilization. This ensures optimization efforts target the actual speed-of-light bound.

What is the roofline model and how does it help with GPU kernel optimization?

The roofline model helps with GPU kernel optimization by systematically identifying whether a kernel is bottlenecked by HBM bandwidth or compute capacity. This framework ensures optimization efforts target the actual hardware limit rather than guessing at performance constraints.

How do I eliminate HBM round-trips when optimizing custom attention kernels?

To eliminate HBM round-trips when optimizing custom attention kernels, apply operator fusion strategies within a trial-loop methodology. This process measures the speed-of-light bound and systematically removes redundant memory access patterns to improve LLM operation performance.

Can I use this approach to optimize fused loss functions for LLM operations?

Yes, you can use this roofline-based trial-loop methodology to optimize fused loss functions for LLM operations. It targets custom fused loss functions alongside GEMM, MLP, and attention kernels across various GPU architectures to beat framework baselines.

What is the best way to benchmark GPU kernel performance and account for HBM traffic?

The best way to benchmark GPU kernel performance and account for HBM traffic is through rigorous performance benchmarking combined with HBM traffic accounting. This access-aware optimization strategy identifies memory bottlenecks to maximize hardware utilization.

Why does my custom GPU kernel underperform compared to standard framework baselines?

Your custom GPU kernel underperforms compared to standard framework baselines likely due to unoptimized HBM round-trips or compute bottlenecks. A structured, tree-based trial loop can iteratively improve kernel performance by measuring against the roofline bound.