Translating CUDA Tile Operations from Python to Rust Using Agentic AI

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

Why it matters

NVIDIA shipped an AI agent skill that converts GPU kernels from Python to Rust with verified correctness, letting developers port kernels today instead of hand-translating.

Read this as

NVIDIA built a tool that automatically converts GPU programs written in Python into Rust, a stricter language that catches more errors before running. All 24 public operators in its TileGym library were converted this way, running at 99.5% of the original speed. An AI agent does the translation with automated checks at every step. Developers who write GPU code can use the free skill from the TileGym GitHub repository today.

NVIDIA released an agent skill in its TileGym repository that ports Python GPU kernels to Rust automatically, covering all 24 public operators at 99.5% of original performance on the DGX B200. Teams maintaining Python-based GPU libraries can now adopt Rust's safety guarantees without hand-rewriting, at no cost. The main limitation: Rust requires explicit type and shape declarations that Python specializes implicitly, so ports must spell out what Python leaves implicit.

NVIDIA's TileGym agent skill translates cuTile Python and Triton-TileIR kernels to cuTile Rust via a bounded multi-agent pipeline where each stage ends in a machine-checkable verdict, including Tile IR diffs against the reference before functional testing. All 24 public operators (about 40 kernels, including flash-attention decode, MLA and MoE) cleared a 0.95 geomean speedup threshold on DGX B200, averaging 0.995 parity. A C-ABI layer passes tensor descriptors without copying; some kernels still use unchecked APIs pending migration to the safe surface.

Read the original

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

Key terms

cuTile Rust TileGym CUDA Tile IR DGX B200 Triton-TileIR Nemotron

Was this summary useful?

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

Related reading