Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenCL Model #744

Merged
merged 35 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
2cab496
add OpenCl mm
tonghaining Sep 12, 2024
e11b443
add NAL tag
tonghaining Sep 14, 2024
e054aff
add default tags
tonghaining Sep 14, 2024
970a95e
update tag
tonghaining Sep 15, 2024
22db27b
add overhauling models
tonghaining Sep 17, 2024
875e5c5
update opencl models
tonghaining Sep 18, 2024
f0d4419
add rmw axiom
tonghaining Sep 22, 2024
6e6802a
rename opencl models
tonghaining Sep 22, 2024
175bcfe
use overhauling models
tonghaining Sep 23, 2024
a745229
add c11 partialsc and simp
tonghaining Sep 25, 2024
401d46d
replace NA with NAL
tonghaining Sep 25, 2024
939df15
add NAL to c11 Init
tonghaining Sep 26, 2024
cc6e775
update c11&opencl model names
tonghaining Sep 26, 2024
1cc0aed
add openclBarrier
tonghaining Sep 26, 2024
9d3f839
clean code
tonghaining Sep 26, 2024
411c420
add REL/ACQ to EF and XF
tonghaining Sep 27, 2024
cb209a7
initialize Reg after thread created
tonghaining Sep 27, 2024
8f5c590
update coh axiom
tonghaining Sep 27, 2024
6c7580a
update visitors and tags
tonghaining Sep 30, 2024
f12d144
update tag to expressions
tonghaining Oct 1, 2024
390e201
remove .cl
tonghaining Oct 2, 2024
c9ac8a4
add thread scope setter
tonghaining Oct 2, 2024
0a88a08
update opencl litmus format
tonghaining Oct 5, 2024
5f9e123
update fr
tonghaining Oct 7, 2024
86e3132
rebase
tonghaining Oct 7, 2024
020c000
Commit suggestion
tonghaining Oct 8, 2024
65fb74a
clean code
tonghaining Oct 9, 2024
32a1132
visit thread declarator before variable declarator
tonghaining Oct 9, 2024
f5b95f7
use dynamic tags for NAL/GLOBAL/LOCAL
tonghaining Oct 12, 2024
22f847b
Merge branch 'development' into opencl1
tonghaining Oct 12, 2024
5326298
clean model
tonghaining Oct 12, 2024
016c6ec
update README, fix threadArgument visitor
tonghaining Oct 13, 2024
41d755c
update opencl.cat
tonghaining Oct 13, 2024
e321b06
add C11 vs OpenCL race tests
tonghaining Oct 14, 2024
2616b7d
clean code
tonghaining Oct 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add rmw axiom
  • Loading branch information
tonghaining committed Oct 7, 2024
commit f0d44196338a6d9a700f46f02b7482ac1c2b2504
6 changes: 5 additions & 1 deletion cat/opencl-overhauling-scopedsc.cat
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
OpenCL
(* OpenCL Memory Model *)
include "basic.cat"

(*
* This model is based on:
* https://multicore.doc.ic.ac.uk/overhauling/opencl_base.cat
* https://multicore.doc.ic.ac.uk/overhauling/opencl.cat
* https://multicore.doc.ic.ac.uk/overhauling/opencl_scopedsc.cat
*)

// Base relations:
Expand Down Expand Up @@ -97,6 +98,9 @@ empty (rf; [NAL & LOCAL])\vis(lhb) as O-NaRfL
(* Consistency of RMWs *)
irreflexive rf | (mo;mo;rf^-1) | (mo;rf) as O-Rmw

// Atomicity
empty rmw & (fre; coe) as atomic

(****************************************)
(* Sequential consistency, simplified, *)
(* with scoped SC axioms *)
Expand Down
4 changes: 4 additions & 0 deletions cat/opencl-overhauling.cat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
OpenCL
(* OpenCL Memory Model *)
include "basic.cat"

(*
* This model is based on:
Expand Down Expand Up @@ -97,6 +98,9 @@ empty (rf; [NAL & LOCAL])\vis(lhb) as O-NaRfL
(* Consistency of RMWs *)
irreflexive rf | (mo;mo;rf^-1) | (mo;rf) as O-Rmw

// Atomicity
empty rmw & (fre; coe) as atomic

(**************************************)
(* Sequential consistency, simplified *)
(**************************************)
Expand Down
4 changes: 4 additions & 0 deletions cat/opencl.cat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
OpenCL
(* OpenCL Memory Model *)
include "basic.cat"

(*
* This model is based on:
Expand Down Expand Up @@ -110,6 +111,9 @@ irreflexive (ghb | lhb); rf; [A] as atomic_rf_consistent
(* Consistency of RMWs *)
irreflexive rf | (fr;co) | (co;rf) as rmw_consistent

// Atomicity
empty rmw & (fre; coe) as atomic

(**************************)
(* Sequential consistency *)
(**************************)
Expand Down