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

表征和检测CUDA程序错误

Characterizing and Detecting CUDA Program Bugs

Mingyuan Wu, Husheng Zhou, Lingming Zhang, Cong Liu, Yuqun Zhang

摘要:

虽然CUDA已经成为通用GPU计算的主要并行计算平台和编程模型,但CUDA引起的错误模式尚未得到很好的探索。在本文中,我们进行了第一次实证研究,以揭示基于GitHub中5个流行CUDA项目中识别的319个错误的CUDA程序错误模式的重要类别。我们的研究结果表明,CUDA特定的特征可能会导致程序错误,如同步错误,而难以检测。为了有效地检测此类同步错误,我们建立了第一个轻量级通用CUDA错误检测框架,即Simulee,通过解释相应的llvm字节码并收集内存访问信息来自动检测CUDA同步错误,从而模拟CUDA程序执行。为了评估Simulee的有效性和效率,我们进行了一组实验,实验结果表明,Simulee可以检测出27个研究的同步错误中的20个,并成功检测到26个以前未知的同步错误,其中10个已被开发人员确认。

英文摘要:

While CUDA has become a major parallel computing platform and programming model for general-purpose GPU computing, CUDA-induced bug patterns have not yet been well explored. In this paper, we conduct the first empirical study to reveal important categories of CUDA program bug patterns based on 319 bugs identified within 5 popular CUDA projects in GitHub. Our findings demonstrate that CUDA-specific characteristics may cause program bugs such as synchronization bugs that are rather difficult to detect. To efficiently detect such synchronization bugs, we establish the first lightweight general CUDA bug detection framework, namely Simulee, to simulate CUDA program execution by interpreting the corresponding llvm bytecode and collecting the memory-access information to automatically detect CUDA synchronization bugs. To evaluate the effectiveness and efficiency of Simulee, we conduct a set of experiments and the experimental results suggest that Simulee can detect 20 out of the 27 studied synchronization bugs and successfully detects 26 previously unknown synchronization bugs, 10 of which have been confirmed by the developers.

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

↑