An Investigation on Numerical Bugs in GPU Programs Towards Automated Bug Detection
Abstract
General-purpose graphics processing unit (GPU) computing has emerged as a leading parallel computing paradigm, offering significant performance gains in various domains such as scientific computing and deep learning. However, GPU programs are susceptible to numerical bugs, which can lead to incorrect results or crashes. These bugs are difficult to detect, debug, and fix due to their dependence on specific input values or types and the absence of reliable error-checking mechanisms and oracles. Additionally, the unique programming conventions of GPUs complicate identifying the root causes of bugs, while fixing them requires domain-specific knowledge of GPU computing and numerical libraries. Therefore, understanding the characteristics of GPU numerical bugs (GPU-NBs) is crucial for developing effective solutions. In this paper, we conduct a comprehensive study of GPU-NBs by analyzing 397 real-world bug samples from GitHub. We identify common root causes, symptoms, input patterns, test oracles that trigger these bugs and the strategies used to fix them. We also present GPU-NBDetect, a preliminary tool designed to detect numerical bugs across six distinct bug categories. GPU-NBDetect detected a total of 226 bugs across 186 mathematical functions in four libraries, with 60 of the bugs confirmed by developers. Our findings lay the groundwork for developing detection and prevention techniques for GPU-NBs and offer insights for building more effective debugging and auto-repair tool.
Create a lesson
Metadata
- Categories
- cs.SE, cs.DC, cs.PL
- Journal
- Proc. ACM Softw. Eng. 2, ISSTA (2025), Article ISSTA073, 1654-1677
- Comments
- Published in Proceedings of the ACM on Software Engineering (PACMSE), ISSTA 2025, associated with the 34th ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA 2025)
Related papers
NumericalDiff: Numerical Program Differencing via Value-Based Trace Alignment and Intervention
Shared title terminologycs.SEXiang Chen, Huanhuan Xia
Patch correctness in automated program repair: A five-dimensional evidence framework and cross-benchmark audit from classical repair to coding agents
Shared title terminologycs.SEShuai Wu, Yanna Feng, Yufang Li et al.
SimFusion: Multi-Fidelity Simulation-based Testing of Automated Driving Systems
Shared title terminologycs.SELev Sorokin, Berfin Dinler, Alessio Gambi et al.
Automated Smoke Testing for Multi-ending Game Quests via Large Language Models
Shared title terminologycs.SEJinyu Cai, Mingyue Zhang, Nianyu Li et al.
Spec-Test Coverage Gap: Detecting Overspecified Tests in SWE-Bench-Style Benchmarks
Shared title terminologycs.SEAvi Aggarwal, Yiran Hu
Decision Models for Definition-Driven GitHub Actions Workflow Smell Detection
Shared title terminologycs.SERohit Gheyi, Anderson Uchôa, Wesley Assunção et al.