arrow
返回

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
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

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.
Keyword:
GPGPU
Stream Programming
Debugging
Interrupt
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

ACM Transactions on Graphics 封面图
ACM Transactions on Graphics
IF:
9.5
论文数:
4.7K
被引数:
3.6W

机构

T
tsinghua university
学者数:
11.9W
论文数: 10.0W
被引数: 137
Z
zhejiang university
学者数:
17.7W
论文数: 12.1W
被引数: 152
引用论文

引用论文

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
err分享
err收藏
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
err分享
err收藏
err分享
err收藏
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
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
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
err分享
err收藏
err分享
err收藏
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
err分享
err收藏
学者 查看更多内容