A Formal Analysis of the NVIDIA PTX Memory Consistency Model
A Formal Analysis of the NVIDIA PTX Memory Consistency Model
复制标题
NVIDIA PTX 内存一致性模型的形式分析
DOI:
10.1145/3297858.3304043
复制
发表时间:
2019
期刊:
影响因子:
--
通讯作者:
Olivier Giroux
中科院分区:
文献类型:
--
作者:
Daniel Lustig;Sameer D. Sahasrabuddhe;Olivier Giroux
This paper presents the first formal analysis of the official memory consistency model for the NVIDIA PTX virtual ISA. Like other GPU memory models, the PTX memory model is weakly ordered but provides scoped synchronization primitives that enable GPU program threads to communicate through memory. However, unlike some competing GPU memory models, PTX does not require data race freedom, and this results in PTX using a fundamentally different (and more complicated) set of rules in its memory model. As such, PTX has a clear need for a rigorous and reliable memory model testing and analysis infrastructure. We break our formal analysis of the PTX memory model into multiple steps that collectively demonstrate its rigor and validity. First, we adapt the English language specification from the public PTX documentation into a formal axiomatic model. Second, we derive an up-to-date presentation of an OpenCL-like scoped C++ model and develop a mapping from the synchronization primitives of that scoped C++ model onto PTX. Third, we use the Alloy relational modeling tool to empirically test the correctness of the mapping. Finally, we compile the model and mapping into Coq and build a full machine-checked proof that the mapping is sound for programs of any size. Our analysis demonstrates that in spite of issues in previous generations, the new NVIDIA PTX memory model is suitable as a sound compilation target for GPU programming languages such as CUDA.
登录
查看更多内容
DOI:
10.1145/2837614.2837637
发表时间:
2016
期刊:
--
影响因子:
--
作者:
Batty M
通讯作者:
Batty M
DOI:
10.1145/3009837.3009838
发表时间:
2017
期刊:
--
影响因子:
--
作者:
Wickerson J
通讯作者:
Wickerson J
影响因子:
--
作者:
Ou, Peizhao;Demsky, Brian
通讯作者:
Demsky, Brian
DOI:
10.1145/3009837.3009839
发表时间:
2017
期刊:
--
影响因子:
--
作者:
Flur S
通讯作者:
Flur S
影响因子:
--
作者:
Sarkar S
通讯作者:
Sarkar S