Debugging GPU Stream Programs Through Automatic Dataflow Recording and Visualization

被引:2
|
作者
Hou, Qiming [1 ]
Zhou, Kun [2 ]
Guo, Baining [1 ]
机构
[1] Tsinghua Univ, Beijing, Peoples R China
[2] Zhejiang Univ, Hangzhou, Zhejiang, Peoples R China
来源
ACM TRANSACTIONS ON GRAPHICS | 2009年 / 28卷 / 05期
关键词
GPGPU; Stream Programming; Debugging; Interrupt;
D O I
10.1145/1618452.1618499
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:1 / 11
页数:11
相关论文
共 50 条
  • [1] Debugging MPI programs with array visualization
    Kranzlmüller, D
    Kobler, R
    Koppler, R
    Volkert, J
    HIGH PERFORMANCE COMPUTING AND NETWORKING, PROCEEDINGS, 2000, 1823 : 597 - 600
  • [2] Program visualization for debugging deadlocks in multithreaded programs
    Gyeongsang National University, Jinju 660-701, Korea, Republic of
    Commun. Comput. Info. Sci., (228-236):
  • [3] The ThreadRadar visualization for debugging concurrent Java programs
    Oliver Moseler
    Lucas Kreber
    Stephan Diehl
    Journal of Visualization, 2022, 25 : 1267 - 1289
  • [4] Debugging and Visualization Techniques for Multithreaded Programs: A Survey
    Jyoti, Aman
    Arora, Vinay
    2014 RECENT ADVANCES AND INNOVATIONS IN ENGINEERING (ICRAIE), 2014,
  • [5] Program Visualization for Debugging Deadlocks in Multithreaded Programs
    Kim, Byung-Chul
    Jun, Yong-Kee
    ADVANCES IN SOFTWARE ENGINEERING, 2010, 117 : 228 - 236
  • [6] Design Flow for GPU and Multicore Execution of Dynamic Dataflow Programs
    Boutellier, J.
    Nylanden, T.
    JOURNAL OF SIGNAL PROCESSING SYSTEMS FOR SIGNAL IMAGE AND VIDEO TECHNOLOGY, 2017, 89 (03): : 469 - 478
  • [7] Design Flow for GPU and Multicore Execution of Dynamic Dataflow Programs
    J. Boutellier
    T. Nyländen
    Journal of Signal Processing Systems, 2017, 89 : 469 - 478
  • [8] DEBUGGING AND ASSESSMENT OF CONTROL PROGRAMS FOR AN AUTOMATIC RADAR
    JACKSON, K
    PRIOR, JR
    COMPUTER JOURNAL, 1969, 12 (04): : 303 - &
  • [9] The ThreadRadar visualization for debugging concurrent Java']Java programs
    Moseler, Oliver
    Kreber, Lucas
    Diehl, Stephan
    JOURNAL OF VISUALIZATION, 2022, 25 (06) : 1267 - 1289
  • [10] Automatic Extraction of AST Patterns for Debugging Student Programs
    Lazar, Timotej
    Mozina, Martin
    Bratko, Ivan
    ARTIFICIAL INTELLIGENCE IN EDUCATION, AIED 2017, 2017, 10331 : 162 - 174