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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Guan, Yue, Fang, Yuanwei, Zhou, Keren, Robeck, Corbin, Ren, Manman, Yu, Zhongkai, Ding, Yufei, Aziz, Adnan
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909625459146752
author Guan, Yue
Fang, Yuanwei
Zhou, Keren
Robeck, Corbin
Ren, Manman
Yu, Zhongkai
Ding, Yufei
Aziz, Adnan
author_facet Guan, Yue
Fang, Yuanwei
Zhou, Keren
Robeck, Corbin
Ren, Manman
Yu, Zhongkai
Ding, Yufei
Aziz, Adnan
contents In this work, we propose KPerfIR, a novel multilevel compiler-centric infrastructure to enable the development of customizable, extendable, and portable profiling 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 to advance 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 optimizations.
format Preprint
id arxiv_https___arxiv_org_abs_2505_21661
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle KPerfIR: Towards an Open and Compiler-centric Ecosystem for GPU Kernel Performance Tooling on Modern AI Workloads
Guan, Yue
Fang, Yuanwei
Zhou, Keren
Robeck, Corbin
Ren, Manman
Yu, Zhongkai
Ding, Yufei
Aziz, Adnan
Distributed, Parallel, and Cluster Computing
Programming Languages
In this work, we propose KPerfIR, a novel multilevel compiler-centric infrastructure to enable the development of customizable, extendable, and portable profiling 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 to advance 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 optimizations.
title KPerfIR: Towards an Open and Compiler-centric Ecosystem for GPU Kernel Performance Tooling on Modern AI Workloads
topic Distributed, Parallel, and Cluster Computing
Programming Languages
url https://arxiv.org/abs/2505.21661