Creating custom kernels for the AMD MI300
Related stories
🤗 Kernels: Major Updates
Introducing the AMD 5th Gen EPYC™ CPU
From Zero to GPU: A Guide to Building and Scaling Production-Ready CUDA Kernels
Hugging Face on AMD Instinct MI300 GPU
AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence Verification
AsmEvo is an agentic assembly-level optimizer that targets compiled AMDGPU code objects, reconstructing a reassemblable representation and applying low-level edits guided by a long-horizon agent. It rebuilds ABI-preserving optimized objects and verifies functional equivalence through differential testing against the original binary. Experiments show significant speedups—up to 1.35× geometric mean on MI308X and 1.18× on MI300X—while maintaining correctness.
Architecting for Hardware Diversity: Meta's End-to-End Co-Design for High-Performance AI Training on AMD GPUs
Meta’s paper details how the company optimizes AI training on AMD GPUs by co‑designing hardware and models, using an analytical performance model for kernel selection, and extending agentic workflows for microarchitecture‑aware optimizations. The authors compare AMD Instinct MI350X to NVIDIA B200 on a recommendation model, achieving up to 1.5× higher training throughput. Their methods, the first hyperscaler report on productionizing AMD GPUs for large‑scale training, have been incorporated into open‑source PyTorch, Triton, and ROCm.
Easily Build and Share ROCm Kernels with Hugging Face
Formalizing PTX in Lean to Prove GPU Kernel Correctness
We present an approach to mathematically formalizing PTX, an approach that allows modeling and reasoning about patterns common in GPU kernels for Deep Learning, including acquire-release, tensor cores...
User-Schedulable Approximations for Quantized Tensor Programs
The paper introduces user‑schedulable approximations for quantized tensor programs, extending Halide’s algorithm‑schedule separation to value representation. By treating each approximation as a codec composed of reusable units (quantizers, integer representations, bit packers, layouts) and applying a new directive, approximate_by, the authors generate 347 kernels that cover 38 weight‑activation pairs missing in existing libraries, using 3.7× less code. Benchmarks on Arm CPUs, Apple GPUs, and x86 with AMX show that these kernels achieve up to 95% of the speed of format‑specific kernels, with a median speedup of 1.13× and comparable performance to Apple’s BLAS in most cases.