Automatically comparing memory consistency models
Automatically comparing memory consistency models
复制标题
自动比较内存一致性模型
DOI:
10.1145/3009837.3009838
复制
发表时间:
2017
期刊:
影响因子:
--
通讯作者:
Wickerson J
中科院分区:
文献类型:
--
作者:
Wickerson J
Amemory consistency model(MCM) is the part of a programming language or computer architecture specification that defines which values can legally be read from shared memory locations. Because MCMs take into account various optimisations employed by architectures and compilers, they are often complex and counterintuitive, which makes them challenging to design and to understand.We identify four tasks involved in designing and understanding MCMs: generating conformance tests, distinguishing two MCMs, checking compiler optimisations, and checking compiler mappings. We show that all four tasks are instances of a general constraint-satisfaction problem to which the solution is either a program or a pair of programs. Although this problem is intractable for automatic solvers when phrased over programs directly, we show how to solve analogous constraints over programexecutions, and then construct programs that satisfy the original constraints.Our technique, which is implemented in the Alloy modelling framework, is illustrated on several software- and architecture-level MCMs, both axiomatically and operationally defined. We automatically recreate several known results, often in a simpler form, including: distinctions between variants of the C11 MCM; a failure of the "SC-DRF guarantee" in an early C11 draft; that x86 is "multi-copy atomic" and Power is not; bugs in common C11 compiler optimisations; and bugs in a compiler mapping from OpenCL to AMD-style GPUs. We also use our technique to develop and validate a new MCM for NVIDIA GPUs that supports a natural mapping from OpenCL.
登录
查看更多内容
DOI:
--
发表时间:
2011
期刊:
Design Automation Conference
影响因子:
--
作者:
Sela Mador;R. Alur;Milo M. K. Martin
通讯作者:
Milo M. K. Martin
DOI:
--
发表时间:
2015
期刊:
International Conference on Architectural Support for Programming Languages and Operating Systems
影响因子:
--
作者:
Marc S. Orr;Shuai Che;Ayse Yilmazer;Bradford M. Beckmann;M. Hill;D. Wood
通讯作者:
D. Wood
DOI:
10.1145/2837614.2837637
发表时间:
2016
期刊:
--
影响因子:
--
作者:
Batty M
通讯作者:
Batty M
DOI:
10.1145/2837614.2837615
发表时间:
2016-01
期刊:
Proceedings of the 43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages
影响因子:
--
作者:
Shaked Flur;Kathryn E. Gray;Christopher Pulte;Susmit Sarkar;A. Sezgin;Luc Maranget;Will Deacon;Peter Sewell
通讯作者:
Shaked Flur;Kathryn E. Gray;Christopher Pulte;Susmit Sarkar;A. Sezgin;Luc Maranget;Will Deacon;Peter Sewell
DOI:
10.1145/165231.165264
发表时间:
1993
期刊:
Proceedings of the eleventh annual ACM symposium on Theory of computing
影响因子:
--
作者:
M. Ahamad;R. Bazzi;Ranjit John;Prince Kohli;G. Neiger
通讯作者:
G. Neiger