Saved in:
Bibliographic Details
Main Authors: Wang, Dewei, Zhu, Wei, Ling, Liyang, Tiotto, Ettore, Wang, Quintin, Tsang, Whitney, Opperman, Julian, Deng, Jacky
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.14985
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913759103025152
author Wang, Dewei
Zhu, Wei
Ling, Liyang
Tiotto, Ettore
Wang, Quintin
Tsang, Whitney
Opperman, Julian
Deng, Jacky
author_facet Wang, Dewei
Zhu, Wei
Ling, Liyang
Tiotto, Ettore
Wang, Quintin
Tsang, Whitney
Opperman, Julian
Deng, Jacky
contents In the era of LLMs, dense operations such as GEMM and MHA are critical components. These operations are well-suited for parallel execution using a tilebased approach. While traditional GPU programming often relies on low level interfaces like CUDA or SYCL, Triton has emerged as a DSL that offers a more user-friendly and portable alternative by programming at a higher level. The current Triton starts at the workgroup (aka threadblock) level, and directly lowers to per-thread level. And then attempt to coalesce and amend through a series of passes, promoting information from low-level representation. We believe this is pre-mature lowering based on the below observations. 1. GPU has a hierarchical structure both physically and logically. Modern GPUs often feature SIMD units capable of directly operating on tiles on a warp or warpgroup basis, such as blocked load and blocked MMA. 2. Multi-level gradual lowering can make compiler decoupled and clean by separating considerations inter and intra a logical layer. 3. Kernel developers often need fine control to get good performance on the latest hardware. FlashAttention2 advocates explicit data partition between warps to make a performance boost. In this context, we propose ML-Triton which features multi-level compilation flow and programming interface. Our approach begins at the workgroup level and progressively lowers to the warp and intrinsic level, implementing a multilevel lowering align with the hierarchical nature of GPU. Additionally, we extend triton language to support user-set compiler hint and warp level programming, enabling researchers to get good out-of-the box performance without awaiting compiler updates. Experimental results demonstrate that our approach achieves performance above 95% of expert-written kernels on Intel GPU, as measured by the geometric mean.
format Preprint
id arxiv_https___arxiv_org_abs_2503_14985
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ML-Triton, A Multi-Level Compilation and Language Extension to Triton GPU Programming
Wang, Dewei
Zhu, Wei
Ling, Liyang
Tiotto, Ettore
Wang, Quintin
Tsang, Whitney
Opperman, Julian
Deng, Jacky
Computation and Language
In the era of LLMs, dense operations such as GEMM and MHA are critical components. These operations are well-suited for parallel execution using a tilebased approach. While traditional GPU programming often relies on low level interfaces like CUDA or SYCL, Triton has emerged as a DSL that offers a more user-friendly and portable alternative by programming at a higher level. The current Triton starts at the workgroup (aka threadblock) level, and directly lowers to per-thread level. And then attempt to coalesce and amend through a series of passes, promoting information from low-level representation. We believe this is pre-mature lowering based on the below observations. 1. GPU has a hierarchical structure both physically and logically. Modern GPUs often feature SIMD units capable of directly operating on tiles on a warp or warpgroup basis, such as blocked load and blocked MMA. 2. Multi-level gradual lowering can make compiler decoupled and clean by separating considerations inter and intra a logical layer. 3. Kernel developers often need fine control to get good performance on the latest hardware. FlashAttention2 advocates explicit data partition between warps to make a performance boost. In this context, we propose ML-Triton which features multi-level compilation flow and programming interface. Our approach begins at the workgroup level and progressively lowers to the warp and intrinsic level, implementing a multilevel lowering align with the hierarchical nature of GPU. Additionally, we extend triton language to support user-set compiler hint and warp level programming, enabling researchers to get good out-of-the box performance without awaiting compiler updates. Experimental results demonstrate that our approach achieves performance above 95% of expert-written kernels on Intel GPU, as measured by the geometric mean.
title ML-Triton, A Multi-Level Compilation and Language Extension to Triton GPU Programming
topic Computation and Language
url https://arxiv.org/abs/2503.14985