Checking Data-Race Freedom of GPU Kernels, Compositionally

被引:7
|
作者
Cogumbreiro, Tiago [1 ]
Lange, Julien [2 ]
Rong, Dennis Liew Zhen [1 ]
Zicarelli, Hannah [1 ]
机构
[1] Univ Massachusetts, Boston, MA 02125 USA
[2] Royal Holloway Univ London, Egham, Surrey, England
关键词
GPU; Data-race; Static analysis; Behavioural types; DETECTING DATA RACES; VERIFICATION; VERIFIER;
D O I
10.1007/978-3-030-81685-8_19
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
GPUs offer parallelism as a commodity, but they are difficult to program correctly. Static analyzers that guarantee data-race freedom (DRF) are essential to help programmers establish the correctness of their programs (kernels). However, existing approaches produce too many false alarms and struggle to handle larger programs. To address these limitations we formalize a novel compositional analysis for DRF, based on access memory protocols. These protocols are behavioral types that codify the way threads interact over shared memory. Our work includes fully mechanized proofs of our theoretical results, the first mechanized proofs in the field of DRF analysis for GPU kernels. Our theory is implemented in Faial, a tool that outperforms the state-of-the-art. Notably, it can correctly verify at least 1.42x more real-world kernels, and it exhibits a linear growth in 4 out of 5 experiments, while others grow exponentially in all 5 experiments.
引用
收藏
页码:403 / 426
页数:24
相关论文
共 43 条
  • [41] Data Race Detection for Interrupt-Driven Programs via Bounded Model Checking
    Wu, Xueguang
    Wen, Yanjun
    Chen, Liqian
    Dong, Wei
    Wang, Ji
    2013 IEEE 7TH INTERNATIONAL CONFERENCE ON SOFTWARE SECURITY AND RELIABILITY - COMPANION (SERE-C), 2013, : 205 - 211
  • [42] Proving Data Race Freedom in Task Parallel Programs Using a Weaker Partial Order
    Ogles, Benjamin
    Aldous, Peter
    Mercer, Eric
    2019 FORMAL METHODS IN COMPUTER AIDED DESIGN (FMCAD), 2019, : 55 - 63
  • [43] Precise Data Race detection in a Relaxed Memory Model using Heuristic-based Model Checking
    Kim, KyungHee
    Yavuz-Kahveci, Tuba
    Sanders, Beverly A.
    2009 IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 2009, : 495 - 499