A language and compiler, used from Python, for writing fast custom GPU kernels for deep learning.
open sourceMIT
Triton is a language and compiler for writing efficient custom deep-learning primitives, such as GPU kernels, with higher productivity than CUDA and more flexibility than existing domain-specific languages. You write kernels in Python and Triton compiles them through LLVM for NVIDIA and AMD GPUs, with CPU support under development. It installs from pip as the triton package.
Problems it solves
- write a custom GPU kernel for my model without writing CUDA
- speed up an operation in my PyTorch model with a fused kernel
- a GPU kernel language that works on both NVIDIA and AMD cards
Features
- write GPU kernels in Python and compile them through LLVM
- runs on NVIDIA GPUs (compute capability 8.0 and up) and AMD GPUs (ROCm 6.2 and up)
- dumps and overrides each compilation stage's IR and PTX or AMDGCN for debugging
Limitations
- Supports Linux only1
