arrow
Return

Debugging GPU Stream Programs Through Automatic Dataflow Recording and Visualization

delete2009-12-01
delete5
delete
OA
AI
Q
Qiming Hou *
K
Kun Zhou
B
Baining Guo
DOI:10.1145/1618452.1618499delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
We present a novel framework for debugging GPU stream programs through automatic dataflow recording and visualization. Our debugging system can help programmers locate errors that are common in general purpose stream programs but very difficult to debug with existing tools. A stream program is first compiled into an instrumented program using a compiler. This instrumenting compiler automatically adds to the original program dataflow recording code that saves the information of all GPU memory operations into log files. The resulting stream program is then executed on the GPU. With dataflow recording, our debugger automatically detects common memory errors such as out-of-bound access, uninitialized data access, and race conditions - these errors are extremely difficult to debug with existing tools. When the instrumented program terminates, either normally or due to an error, a dataflow visualizer is launched and it allows the user to examine the memory operation history of all threads and values in all streams. Thus the user can analyze error sources by tracing through relevant threads and streams using the recorded dataflow. A key ingredient of our debugging framework is the GPU interrupt, a novel mechanism that we introduce to support CPU function calls from inside GPU code. We enable interrupts on the GPU by designing a specialized compilation algorithm that translates these interrupts into GPU kernels and CPU management code. Dataflow recording involving disk I/O operations can thus be implemented as interrupt handlers. The GPU interrupt mechanism also allows the programmer to discover errors in more active ways by developing customized debugging functions that can be directly used in GPU code. As examples we show two such functions: assert for data verification and watch for visualizing intermediate results.
Keywords:
GPGPU
Stream Programming
Debugging
Interrupt
Fuzz4Cuda: Fuzzing Your NVIDIA GPU Libraries Through Debug Interface
err2025-11-12
err0
PREAI
errYuhao Zhou; Peng Jia; Jiayong Liu; Ximing Fan
errShare
errSave
Automatic performance debugging of SPMD-style parallel programs
err2011-07-01
err7
errOAAI
errLiu, Xu; Zhan, Jianfeng; Zhan, Kunlin; Shi, Weisong; Yuan, Lin; Meng, Dan; Wang, Lei
errShare
errSave
Streaming algorithms for biological sequence alignment on GPUs
err2007-09-01
err121
PREAI
errLiu, Weiguo; Schmidt, Bertil; Voss, Gerrit; Mueller-Wittig, Wolfgang
errShare
errSave
A new fault localizing method for the program debugging process
err1997-04-01
err3
PREAI
errLian, L; Kusumoto, S; Kikuno, T; Matsumoto, K; Torii, K
errShare
errSave
Automatic Debugging of Design Faults in MapReduce Applications
err2024-04-01
err0
errOAAI
errMoran, Jesus; Bertolino, Antonia; de la Riva, Claudio; Tuya, Javier
errShare
errSave

Journal

ACM Transactions on Graphics cover
ACM Transactions on Graphics
IF:
9.5
Papers:
4.9K
Citations:
4.4W

Organization

zhe jiang university cover
zhe jiang university
Scholars:
1.5K
Papers: 463
Citations: 9.6W
Tsinghua University cover
Tsinghua University
Scholars:
1.2W
Papers: 4.2K
Citations: 9.9W
Cited Papers

Cited Papers

Rif1 functions in a tissue-specific manner to control replication timing through its PP1-binding motif
err
IF0
err2019-12-09
err0
errOAAI
errRobin L. Armstrong; Souradip Das; Christina A. Hill; Robert J. Duronio; Jared T. Nordman
errShare
errSave
Comparison of short-term heart rate variability indexes evaluated through electrocardiographic and continuous blood pressure monitoring
err2019-02-07
err0
PREAI
errRiccardo Pernice; Michal Javorka; Jana Krohova; Barbora Czippelova; Zuzana Turianikova; Alessandro Busacca; Luca Faes
errShare
errSave
errShare
errSave
A relational debugging engine for the graphics pipeline
err2005-07-01
err8
PREAI
errDuca, N; Niski, K; Bilodeau, J; Bolitho, M; Chen, Y; Cohen, J
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
A comprehensive comparison on cell type composition inference for spatial transcriptomics data
err
IF0
err2022-02-22
err0
errOAAI
errJiawen Chen; Weifang Liu; Tianyou Luo; Zhentao Yu; Minzhi Jiang; Jia Wen; Gaorav P. Gupta; Paola Giusti; Hongtu Zhu; Yuchen Yang; Yun Li
errShare
errSave
BSGP: Bulk-synchronous GPU programming
err2008-08-01
err95
PREAI
errHou, Qiming; Zhou, Kun; Guo, Baining
errShare
errSave
The impact of genome defense on mobile elements in Microbotryum
err2009-11-07
err0
PREAI
errLouise J. Johnson; Tatiana Giraud; Ryan Anderson; Michael E. Hood
errShare
errSave
researcher View more