What problem does it solve?
Writing high-performance GPU kernels for deep learning operations requires deep knowledge of memory hierarchies, tensor cores, and hardware-specific tuning, which most developers lack.
Core Features & Use Cases
- Core Kernel Patterns: Provides verified patterns for masking, block sizing, FP32 accumulation, stride-based addressing, and autotune configuration for any Triton kernel.
- Specialized Kernel Guides: Covers FlashAttention v2 with online softmax, persistent warp-specialized matmul with TMA, fused LayerNorm/RMSNorm, quantized block-scaled GEMM, and memory-efficient dropout via Philox PRNG.
- Performance Diagnosis: Includes bottleneck classification (memory-bound, compute-bound, underutilized) with NCU metrics and hardware reference tables for A100, H100, and consumer GPUs.
- Use Case: When implementing a fused attention kernel for a custom transformer, read the FlashAttention guide for the online softmax loop, then use the dynamic launcher guide to select tile sizes based on sequence length and dtype.
Quick Start
Write a Triton kernel for fused softmax over rows of a matrix and benchmark it against the PyTorch baseline.