TLX.ops GPU kernels package state-of-the-art, architecture-specific TLX kernels as a reusable library for NVIDIA Hopper and Blackwell and AMD MI300x and MI350x GPUs. The GEMM kernels shown reach up to 1.4x speedup over vendor libraries cuBLAS and hipBLASLt.
High-performance GPU kernels are rarely one-size-fits-all. Their best strategy shifts with the GPU architecture, tensor shapes and real workloads, so even excellent kernels are hard to keep fast as hardware changes.
What the library covers
The TLX.ops GPU kernels catalog spans GEMM, including low-precision and grouped variants, attention, MoE, normalization and fused operators. TLX.ops checks correctness, performance and compile time against shape lists drawn from real workloads, and treats those benchmark shapes as evolving targets that guard against regressions.
It is built for three groups:
- Kernel engineers can fork an existing kernel, build a variant or contribute a new one.
- ML engineers call it in one line: from triton.tlx.ops import mm as tlx_mm, then out = tlx_mm(a, b).
- Kernel-authoring agents get source kept symbolic and structurally consistent, so they can read, modify and generate kernels. A separate TLX-agents effort is planned for a future post.

NVIDIA Blackwell GEMM
On Blackwell, tcgen05 matrix instructions run asynchronously and accumulate in tensor memory (TMEM, 256 KB per SM) instead of registers. Separate warps load operands, issue matrix instructions and handle epilogues. That allows overlap but creates synchronization problems.
To keep tensor cores busy at tile boundaries, the kernel signals completion asynchronously with tlx.tcgen05_commit, so the next tile starts in another TMEM buffer. Cluster launch control assigns pending tiles to free clusters. On a 2-CTA FP16 1024x12800x1152 shape, the async commit cut measured duration by 2.2% and cluster scheduling added another 2.1%. A leader-only protocol for 2-CTA cooperation cut dynamic instructions by 4.2% at roughly unchanged performance.
In the target workload, 38% of shapes have fewer 128×128 output tiles than SMs, most with K of 100,000 or more. Deterministic split-K divides the K dimension into independent work items, writes FP32 partial results to separate workspaces and sums them in fixed order, so results repeat from run to run without atomic reductions. Other shape-specific tweaks include transposed TMA views for the 200 of 422 shapes with column-major A, narrower 256×128 tiles for tall memory-bound outputs, and splitting non-power-of-two widths such as 208 into 128, 64 and 16 pieces.

AMD MI350x MXFP8 GEMM
MI350x doesn’t use Blackwell-style TMA warp specialization. Each wave schedules its own global-to-LDS copies, LDS reads and matrix instructions, so the kernel must keep future copies in flight while overlapping reads with compute. MXFP8 adds a scale byte for every 32 values along K, and handling those bytes adds instruction overhead. A 256×256 output tile across eight waves also needs 128 FP32 accumulator registers per lane.
The kernel runs eight waves in two groups of four that alternate compute and memory stages one step apart. Four 128×128 quadrants run in a fixed order that maximizes operand reuse, with refills issued six sub-steps ahead. A packing trick stores scale atoms so the four needed bytes sit together, letting one 32-bit LDS read replace four byte reads and a permutation.

NVIDIA Hopper GEMM
Hopper has TMA, warp specialization and async WGMMA but no TMEM. A single 4-warp group accumulating a 128×256 FP32 tile would need 256 registers per thread, above Hopper’s 255-register limit, so the tile is split between two consumer groups. Completion uses tlx.async_dot_wait in place of Blackwell’s commit barriers, and the grid is static and persistent, without cluster launch control or 2-CTA cooperation.
Getting it running
TLX.ops lives in the fbtriton repository. A companion package, ยตTLX, brings the same TLX features to stock Triton with a native library and plugin passes, without changing the Triton compiler. It installs with pip install triton-utlx, or triton-utlx-rocm for AMD.
Benchmarks used B200, H100, MI350X and MI300X systems with CUDA 13.0 or ROCm 7.2, PyTorch 2.14.0 and maximum clocks where permitted, as of November 30, 2026. Aggregate speedups are geometric means of per-shape results, and “up to” figures are the best single shape, so results will vary with hardware and software versions.
What to watch next
The TLX.ops GPU kernels are meant to grow as workloads shift, and the planned TLX-agents work aims to let kernel libraries and authoring agents improve each other. Teams running GEMM-heavy workloads can test the shape-specific kernels against cuBLAS or hipBLASLt on their own shapes before relying on the headline 1.4x figure.
Source: PyTorch