GMRace: Detecting Data Races in GPU Programs via a Low-Overhead Scheme

被引:28
|
作者
Zheng, Mai [1 ]
Ravi, Vignesh T. [2 ]
Qin, Feng [1 ]
Agrawal, Gagan [1 ]
机构
[1] Ohio State Univ, Dreese Labs 395, Columbus, OH 43082 USA
[2] AMD, Austin, TX 78735 USA
基金
美国国家科学基金会;
关键词
GPU; CUDA; data race; concurrency; multithreading;
D O I
10.1109/TPDS.2013.44
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In recent years, GPUs have emerged as an extremely cost-effective means for achieving high performance. While languages like CUDA and OpenCL have eased GPU programming for nongraphical applications, they are still explicitly parallel languages. All parallel programmers, particularly the novices, need tools that can help ensuring the correctness of their programs. Like any multithreaded environment, data races on GPUs can severely affect the program reliability. In this paper, we propose GMRace, a new mechanism for detecting races in GPU programs. GMRace combines static analysis with a carefully designed dynamic checker for logging and analyzing information at runtime. Our design utilizes GPUs memory hierarchy to log runtime data accesses efficiently. To improve the performance, GMRace leverages static analysis to reduce the number of statements that need to be instrumented. Additionally, by exploiting the knowledge of thread scheduling and the execution model in the underlying GPUs, GMRace can accurately detect data races with no false positives reported. Our experimental results show that comparing to previous approaches, GMRace is more effective in detecting races in the evaluated cases, and incurs much less runtime and space overhead.
引用
收藏
页码:104 / 115
页数:12
相关论文
共 50 条
  • [41] Low-overhead fault-tolerant error correction scheme based on quantum stabilizer codes
    陈秀波
    赵立云
    徐刚
    潘兴博
    陈思怡
    程振文
    杨义先
    Chinese Physics B, 2022, (04) : 92 - 99
  • [42] A cost-effective and low-overhead chromatic dispersion compensation scheme in TDM PON systems
    Chen, Yangyang
    Zhou, Xian
    Chen, Xue
    Su, Jie
    Li, Changlei
    PROCEEDINGS OF THE 2012 SECOND INTERNATIONAL CONFERENCE ON INSTRUMENTATION & MEASUREMENT, COMPUTER, COMMUNICATION AND CONTROL (IMCCC 2012), 2012, : 1069 - 1072
  • [43] Low-overhead fault-tolerant error correction scheme based on quantum stabilizer codes
    Chen, Xiu-Bo
    Zhao, Li-Yun
    Xu, Gang
    Pan, Xing-Bo
    Chen, Si-Yi
    Cheng, Zhen-Wen
    Yang, Yi-Xian
    CHINESE PHYSICS B, 2022, 31 (04)
  • [44] Sound and Partially-Complete Static Analysis of Data-Races in GPU Programs
    Liew, Dennis
    Cogumbreiro, Tiago
    Lange, Julien
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (OOPSLA):
  • [45] On Low-Overhead and Stable Data Transmission between Channel-Hopping Cognitive Radios
    Wu, Ching-Chan
    Wu, Shan-Hung
    Chen, Wen-Tsuen
    IEEE TRANSACTIONS ON MOBILE COMPUTING, 2017, 16 (09) : 2574 - 2587
  • [46] Sunder: Enabling Low-Overhead and Scalable Near-Data Pattern Matching Acceleration
    Sadredini, Elaheh
    Rahimi, Reza
    Imani, Mohsen
    Skadron, Kevin
    PROCEEDINGS OF 54TH ANNUAL IEEE/ACM INTERNATIONAL SYMPOSIUM ON MICROARCHITECTURE, MICRO 2021, 2021, : 311 - 323
  • [47] Low-Complexity and Low-Overhead Receiver for OTFS via Large-Scale Antenna Array
    Shan, Yaru
    Wang, Fanggang
    IEEE TRANSACTIONS ON VEHICULAR TECHNOLOGY, 2021, 70 (06) : 5703 - 5718
  • [48] Combining Deduplication and Delta Compression to Achieve Low-Overhead Data Reduction on Backup Datasets
    Xia, Wen
    Jiang, Hong
    Feng, Dan
    Tian, Lei
    2014 DATA COMPRESSION CONFERENCE (DCC 2014), 2014, : 203 - 212
  • [49] DSLR-: A low-overhead data structure layout randomization for defending data-oriented programming
    Wei, Jin
    Chen, Ping
    JOURNAL OF COMPUTER SECURITY, 2024, 32 (03) : 221 - 246
  • [50] An architecture interface and offload model for low-overhead, near-data, distributed accelerators
    Baskaran, Saambhavi
    Kandemir, Mahmut Taylan
    Sampson, Jack
    2022 55TH ANNUAL IEEE/ACM INTERNATIONAL SYMPOSIUM ON MICROARCHITECTURE (MICRO), 2022, : 1160 - 1177