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

使用ISCC与中间代码表示进行SIMT/GPU数据竞争验证:案例研究

SIMT/GPU Data Race Verification using ISCC and Intermediary Code Representations: A Case Study

Andrew Osterhout, Ganesh Gopalakrishnan

AI总结:

本文以GeSpMM稀疏矩阵乘法算法为案例,研究在LLVM等中间表示层面利用ISCC进行SIMT/GPU内存模型验证以检测数据竞争的可行性。

摘要:

在为并行计算任务编程时,通常很难确保代码会按正确顺序执行。由于当今并行计算硬件(主要是图形处理单元GPU)允许编写代码的方式,很容易写出可能导致某一线程过早读取或修改数据、从而引发数据竞争的代码。拥有一个能够验证代码将按预期执行的工具会很有用。然而,大多数在语言层面进行的静态分析在用于不同语言时都必须完全重新改造。因此,能够在大多数语言通往GPU硬件可理解形式的过程中所经过的较低层级中间表示上,对并行计算代码的内存模型进行验证和分析,将具有很大价值。本工作旨在探讨以下问题:中间表示中是否仍保留足够的信息,以便能够执行内存模型验证来检查数据竞争。为确定这一点,我们计划以GeSpMM稀疏矩阵乘法算法为案例进行分析,该算法分别使用CUDA C++配合LLVM编译器以及Julia配合CUDA.jl实现。

英文摘要:

It is often difficult to write code that you can ensure will be executed in the right order when programing for parallel compute tasks. Due to the way that today's parallel compute hardware, primarily Graphical Processing Units (GPUs), allows you to write code. It is easy to write code that may result in one thread reading or modifying data before it should, thus resulting in a data race. It would be useful to have a tool that could verify that the code will execute as expected. However, most static analysis done at the language level has to be completely retooled to work on a different languages. Therefore, it would be of great use to be able to perform verification and analysis on the Memory Model of a parallel compute code, in a lower level intermediary representations that most languages pass through on their way to something that the GPU hardware can understand. This body of work aims to deal with the question of if there is still enough of the information in the intermediary representations to be able to perform memory model verification to check for data races. To determine this we plan to analyze as a case study the GeSpMM Sparse Matrix Multiplication Algorithm, implemented in CUDA C++ with the LLVM compiler and Julia with CUDA.jl.

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

↑