From Trace to FP8: Find the GEMM Bottleneck, Then Hand-Tune It on Radeon

Most GPU performance work is the same loop: find out where the time actually goes, then fix the kernel that’s eating it. These three recent posts cover both halves - an agent that reads your profiler traces and tells you what to fix first, and a two-part series that builds a GEMM kernel by hand on RDNA until it trades blows with hipBLASLt.


Quick reference table

Blog Key result Who it’s for
Automating Performance Bottleneck Identification with the TraceLens Agent In its worked example, flags 18 BF16 GEMM shapes eating ~80.6% of compute time at 68.7-86.7% of roofline, with root cause and fix Anyone bringing up a training or inference workload who wants a ranked to-do list instead of a raw trace
FP16 GEMM Optimization on AMD RDNA 3 and RDNA 4 Architectures Eight steps take a ~150 ms starter kernel to within a few percent of hipBLASLt on Radeon PRO W7800, Radeon 8060S and RX 9070 XT Kernel developers who want to understand a fast GEMM, not just call one
FP8 GEMM Optimization on AMD RDNA 4 Architecture On RX 9070 XT, the best tile lands within a few percent of hipBLASLt on large transformer shapes and ahead of it on the smallest Developers pushing low-precision inference kernels on RDNA 4

Measure it, build it, shrink it: TraceLens tells you which GEMMs are underrunning their roofline (and its own example suggests tile tuning and dropping to FP8), Part 1 shows what tile tuning really means step by step, and Part 2 takes that same kernel to FP8.


:link:Automating Performance Bottleneck Identification with the TraceLens Agent

TraceLens Agent sits on top of the open-source TraceLens library and turns a raw PyTorch profile into a prioritized, evidence-backed optimization report - each finding comes with the data behind it, the reason it’s slow, and a concrete fix. If you’ve ever stared at a trace wondering which of a thousand kernels actually matters, this is the shortcut to the top of the list.


:link:FP16 GEMM Optimization on AMD RDNA 3 and RDNA 4 Architectures

Part 1 builds an FP16 GEMM from WMMA instructions in eight incremental steps - LDS bank-conflict avoidance, buffer resource descriptors, cache-friendly block ordering, prefetch interleaving - and times every step against hipBLASLt. It runs on a workstation card, a Strix Halo iGPU and an RX 9070 XT, so you can follow along on hardware you probably already have.


:link: FP8 GEMM Optimization on AMD RDNA 4 Architecture

Part 2 ports the final kernel to FP8 on RDNA 4 and shows what the smaller element buys you: the same LDS budget now fits bigger tiles and deeper K slices. Four tile configurations are compared on transformer-sized shapes, and the lesson is a useful one - no single tile wins everywhere.

Drop questions or your own numbers below - always good to see how these techniques land on different GPUs and shapes.