GEMM & Tiling Explorer

GEMM is the matrix multiplication used in most transformer operations. Tiling divides a large multiplication into blocks that fit in fast on-chip memory (SRAM). Reusing each block reduces transfers to high-bandwidth memory (HBM). This can increase throughput, which is the number of tokens processed per second.

Hardware

Model

Layer Operation

Request

Tiling

Performance Options

Selected Operation

FLOPs
Bytes (tiled)
FLOPs/Byte
Limit

Matrix Dimensions:

Tiling Grid & Wave Mapping

Single Tile Accumulation

Memory Traffic: Untiled vs Tiled

Roofline Model

Matrix Multiplications in One Layer

Operation M K N FLOPs Bytes (tiled) FLOPs/Byte Limit Time (ms)

Click a preset to change the settings.