2016
DOI: 10.1145/2914770.2837637
|View full text |Cite
|
Sign up to set email alerts
|

Overhauling SC atomics in C11 and OpenCL

Abstract: Despite the conceptual simplicity of sequential consistency (SC), the semantics of SC atomic operations and fences in the C11 and OpenCL memory models is subtle, leading to convoluted prose descriptions that translate to complex axiomatic formalisations. We conduct an overhaul of SC atomics in C11, reducing the associated axioms in both number and complexity. A consequence of our simplification is that the SC operations in an execution no longer need to be totally ordered. This relaxation enables, for the firs… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

1
86
0

Year Published

2016
2016
2022
2022

Publication Types

Select...
4
2
2

Relationship

5
3

Authors

Journals

citations
Cited by 42 publications
(87 citation statements)
references
References 41 publications
(74 reference statements)
1
86
0
Order By: Relevance
“…We have included some recently-proposed simplifications. In particular, the simpler release sequence (proposed by Vafeiadis et al [77]) makes deadness easier to define ( §3.4), and omitting the total order 'S ' over SC events (as proposed by Batty et al [14]) avoids having to iterate over all total orders when showing an execution to be inconsistent.…”
Section: Consistent Race-free and Allowed Executionsmentioning
confidence: 99%
See 1 more Smart Citation
“…We have included some recently-proposed simplifications. In particular, the simpler release sequence (proposed by Vafeiadis et al [77]) makes deadness easier to define ( §3.4), and omitting the total order 'S ' over SC events (as proposed by Batty et al [14]) avoids having to iterate over all total orders when showing an execution to be inconsistent.…”
Section: Consistent Race-free and Allowed Executionsmentioning
confidence: 99%
“…Batty et al have proposed a change to the C11 consistency axioms that enables them to be simplified, and also avoids the need for a total order, S , over all SC events [14]. Having already incorporated their proposal in our …”
Section: Simplifying the Sc Axioms In C11mentioning
confidence: 99%
“…We find that Alloy has several advantages over other frameworks that have been used to reason about MCMs, such as Isabelle (e.g., [16]), Lem [56] (e.g., [15]), Coq (e.g., [77]), and .cat [12] (e.g., [14]). A key advantage is that the entire memory modelling process can be conducted within Alloy: the Alloy modelling language can express programming languages, compiler mappings, MCMs, and properties to test, the Alloy Analyzer can discover solutions, and the Alloy Visualizer can display solutions using theming customised for the model at hand.…”
Section: Related Workmentioning
confidence: 99%
“…That is, is there a litmus test that can pass under one but must fail under the other? [11,14,43,48,50,58,63] Q3 Can 'strengthening' a program (syntactically) ever enable additional behaviours? For instance, can we take a litmus test that must fail, impose additional sequencing or dependencies between its instructions (or, in the C11 case, give an atomic operation a stronger 'memory order' [38 ( §7.17.3)]), and thereby allow it to pass?…”
Section: Introductionmentioning
confidence: 99%
“…If no memory order is provided, a default memory order of sequentially consistent is used [14, p. 103]. Rules on the orderings provided by these annotations are given both in the standard and (more formally) in recent academic work [5].…”
Section: Background On Openclmentioning
confidence: 99%