NVIDIA/cutile-python
cuTile is a programming model for writing parallel kernels for NVIDIA GPUs
What it solves
cuTile Python provides a way to write and execute custom GPU kernels directly in Python. It simplifies the process of creating high-performance parallel code for NVIDIA GPUs by allowing developers to define kernels using Python syntax instead of lower-level languages.
How it works
It uses the Tile IR intermediate representation to compile Python code into GPU-executable kernels. Developers define a kernel function using the @ct.kernel decorator, which handles data loading, computation, and storage operations on the GPU. The library integrates with existing Python data ecosystems like CuPy to manage memory and launch these kernels on the GPU hardware.
Who it’s for
This tool is designed for developers working with NVIDIA GPUs who want to write custom GPU kernels using Python. It is specifically optimized for newer NVIDIA architectures, including Blackwell, Ampere, and Ada GPU series.
Highlights
- Enables writing GPU kernels using standard Python syntax.
- Integrates seamlessly with libraries like CuPy for array management.
- Supports high-performance execution via the Tile IR compiler.
- Offers an optional preview package for testing experimental APIs.
- Provides flexible installation options, including PyPI packages or building from source.
Related
- Project
NVIDIA/tilusTilus is a tile-level GPU kernel programming language that enables high-performance, low-precision computation with explicit control over shared memory and registers.
- Project
NVIDIA/cuda-tileCUDA Tile IR is an MLIR‑based compiler infrastructure from NVIDIA that introduces a dedicated dialect for tile‑oriented CUDA kernels. It provides C++ and Python APIs, a binary bytecode format, and tools to translate MLIR to bytecode or cubin, enabling high‑performance kernels that target NVIDIA Tensor‑Core units. The project builds on LLVM/MLIR, aligns with CUDA Toolkit 13.1, and includes a conformance test suite. It is a genuine AI‑related compiler project, not a tutorial or list.
- Project
NVlabs/cutile-rscuTile Rust (`cutile‑rs`) is an early‑stage Rust library that lets you write memory‑safe, data‑race‑free GPU kernels using a tile‑based model. Kernels are JIT‑compiled to NVIDIA’s CUDA Tile IR and can be launched synchronously, asynchronously, or as CUDA graphs. The project targets modern NVIDIA GPUs (Ampere‑Ada‑Hopper‑Blackwell) and is already used by Rust ML frameworks like Candle and mistral.rs for fast quantized kernels. Development has moved to the NVIDIA/cuda‑rust monorepo; the repo is archived but still provides examples, tests, and a Nix flake for quick experimentation.
- Project
NVIDIA/TileGymA CUDA Tile kernel library providing tutorials and examples for tile-based GPU programming to optimize deep learning operators and LLM inference.
- Project
NVIDIA/cuda-pythonCUDA Python is a metapackage of subpackages that gives Python developers access to NVIDIA's CUDA platform, from low-level bindings to high-level Pythonic interfaces and JIT compilation, all versioned independently.