KPerfIR: Towards a Open and Compiler-centric Ecosystem for GPU Kernel Performance Tooling on Modern AI Workloads

Yue Guan, University of California, San Diego; Yuanwei Fang, Meta; Keren Zhou, George Mason University and OpenAI; Corbin Robeck and Manman Ren, Meta; Zhongkai Yu, University of California, San Diego; Yufei Ding, University of California, San Diego, and Meta; Adnan Aziz, Meta

In this work, we propose KPerfIR, a novel multi-level compiler-centric infrastructure designed to enable the development of customizable, extendable, and portable performance tools tailored for modern artificial intelligence (AI) workloads on modern GPUs. Our approach integrates profiling capabilities directly into the compiler workflow, allowing profiling functionalities to be implemented as compiler passes, offering a programmable and reusable framework for performance analysis. This design bridges the gap between compilers and profilers, enabling fine-grained insights into complex optimization challenges, such as overlapping the execution of fine-grained function units on GPUs. KPerfIR is integrated into the Triton infrastructure to highlight the power of a compiler-centric approach for advancing performance analysis and optimization in the ever-evolving landscape of AI compilers. Our evaluation shows that our tool incurs low overhead (8.2%), provides accurate measurements (2% relative error), and delivers actionable insights into complicated GPU intra-kernel events.

OSDI '25 Open Access Sponsored by
King Abdullah University of Science and Technology (KAUST)

Open Access Media

USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.

BibTeX
@inproceedings {308720,
author = {Yue Guan and Yuanwei Fang and Keren Zhou and Corbin Robeck and Manman Ren and Zhongkai Yu and Yufei Ding and Adnan Aziz},
title = {{KPerfIR}: Towards a Open and Compiler-centric Ecosystem for {GPU} Kernel Performance Tooling on Modern {AI} Workloads},
booktitle = {19th USENIX Symposium on Operating Systems Design and Implementation (OSDI 25)},
year = {2025},
isbn = {978-1-939133-47-2},
address = {Boston, MA},
pages = {205--220},
url = {https://www.usenix.org/conference/osdi25/presentation/guan},
publisher = {USENIX Association},
month = jul
}

Presentation Video