arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.19652cs.SE
收藏

刻画用于自动化Bug检测的Tile程序中的现实世界Bug

Characterizing Real-World Bugs in Tile Programs for Automated Bug Detection

University of Texas at Dallas(达拉斯大学);Institute of Systems for Advanced Computing, Fudan University(复旦大学高级计算系统研究所);Beijing Tongming Lake Information Technology Application Innovation Center(北京通明湖信息技术应用创新中心);Shanghai Institute of Systems for Open Computing(上海开放计算系统研究所);Key Lab of HCST (PKU), MOE(北京大学计算机辅助设计与图形学教育部重点实验室;计算机科学系,北京大学);SCS, Peking University

Ravishka Rathnasuriya, Zihe Song, Nidhi Majoju, Aaryaa Moharir, Tingxi Li, Wei Yang, Tao Xie

AI总结:

本文首次系统研究了Tile程序代码生成中的Bug,通过收集401个GitHubbug报告,识别出301个Tile程序代码生成Bug,分析其根本原因、症状、输入模式、触发测试或acles以及修复策略,为构建针对Tile编译器基础设施的调试、测试和修复工具提供基础见解。

摘要:

基于Tile的编程框架越来越多地用于在深度学习和科学计算等领域编写高性能GPU内核。尽管这些框架提高了生产力和硬件利用率,但它们的多阶段编译流水线引入了与输入形状、数据类型和后端目标紧密相关的代码生成Bug。这些Bug往往表现为无声的正确性或性能问题,使现有编译器测试工具难以检测。此外,Tile领域特定语言独特的编程约定使根本原因的识别变得更加复杂,而修复此类Bug需要对Tile抽象和编译流水线有专门的知识。尽管Tile-based系统日益普及,但其代码生成Bug仍鲜有研究。本文首次系统研究了Tile程序代码生成Bug。我们从GitHub收集了401个bug报告,并识别出301个Tile程序代码生成Bug进行分析,分类了根本原因、症状、输入模式、触发这些Bug的测试或acles以及修复策略。我们的研究为构建针对Tile编译器基础设施的调试、测试和修复工具提供了基础见解。

英文摘要:

Tile-based programming frameworks are increasingly adopted to write high-performance GPU kernels in domains such as deep learning and scientific computing. While these frameworks enhance productivity and hardware utilization, their multi-stage compilation pipelines introduce distinct code generation bugs that are tightly coupled to input shapes, data types, and backend targets. These bugs often manifest as silent wrong results or performance issues, making them difficult to detect using existing compiler testing tools. Additionally, the unique programming conventions of tile domain-specific languages complicate root cause identification, while fixing such bugs demands specialized knowledge of tile abstractions and compilation pipelines. Despite the growing adoption of tile-based systems, their code generation bugs remain largely unexplored. This paper presents the first systematic study of tile-program code generation bugs. We curate 401 bug reports from GitHub and identify 301 tile-program codegen bugs for analysis, characterizing their root causes and symptoms, the input patterns that trigger them, the test oracles that detect them, and the strategies for fixing these bugs. Our study provides foundational insights for building debugging, testing, and repair tools tailored to tile-based compiler infrastructures.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑