How to Write High-Performance Matrix Multiply in NVIDIA CUDA Tile

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

NVIDIA's cuTile framework is now usable today on Blackwell GPUs to write near-cuBLAS-performance matrix multiply kernels without writing CUDA threads by hand.

Read this as

NVIDIA published a tutorial showing how to write a fast matrix-multiplication kernel in cuTile, a new Python-based GPU programming framework. Instead of managing thousands of individual threads, programmers assign each block of processors a small tile of the output matrix, and cuTile automatically uses the GPU's Tensor Cores. On an RTX 5080, the resulting kernel reaches over 90 percent of PyTorch's cuBLAS performance. It currently works only on NVIDIA Blackwell GPUs.

NVIDIA is positioning cuTile as its next-generation GPU programming model, and this post shows it is already viable: a tutorial kernel hits over 90 percent of cuBLAS performance on an RTX 5080, with swizzled memory mapping cutting memory traffic by 20 percent. The catch is hardware: it requires Blackwell GPUs (compute capability 10.x/12.x) and wider architecture support is still pending in future CUDA Toolkit releases.

The tutorial implements matmul as a cuTile kernel: compile-time constant tile sizes (tm, tn, tk) enable loop unrolling and specialized codegen, ct.mma() invokes Tensor Cores over the K-dimension loop, and a swizzle_2d block-to-tile mapping with GROUP_SIZE_M=8 improves cache locality, cutting memory accesses by 20 percent versus linear row access. Benchmarked on a GeForce RTX 5080 (compute capability 12.0) at matrix sizes 1024-16384, it achieves over 90 percent of PyTorch cuBLAS performance. Code is in the TileGym repository, which includes an autotuner; support is limited to Blackwell architectures.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

cuTile NVIDIA Blackwell RTX 5080 TileGym Tensor Cores ct.mma()

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading