-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 3 tests from paper "heterogeneous race free memory models" (#554)
* add mp3transitive test * add Figure5 test of hrf paper
- Loading branch information
1 parent
c93492b
commit 7f1e609
Showing
5 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
PTX MP-3-transitive | ||
"Adapted from Figure 6 of paper: Heterogeneous-race-free Memory Models" | ||
{ | ||
x=0; y=0; z=0; | ||
P1:r0=0; P2:r1=0; P2:r2=0; | ||
} | ||
P0@cta 0,gpu 0 | P1@cta 0,gpu 0 | P2@cta 1,gpu 0 ; | ||
st.weak x, 1 | ld.acquire.cta r0, y | ld.acquire.gpu r1, z ; | ||
st.release.cta y, 1 | st.release.gpu z, 1 | ld.weak r2, x ; | ||
~exists | ||
(P1:r0 == 1 /\ P2:r1 == 1 /\ P2:r2 != 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Vulkan SB-2-dv | ||
"Adapted from Figure 5 of paper: Heterogeneous-race-free Memory Models" | ||
{ | ||
x=0; y=0; | ||
P0:r0=0; P1:r1=0; | ||
} | ||
P0@sg 0, wg 0, qf 0 | P1@sg 0, wg 1, qf 0 ; | ||
st.atom.rel.wg.sc0.semsc0 x, 1 | st.atom.rel.dv.sc0.semsc0 y, 1 ; | ||
ld.atom.acq.dv.sc0.semsc0 r0, y | ld.atom.acq.wg.sc0.semsc0 r1, x ; | ||
exists | ||
(P0:r0 == 0 /\ P1:r1 == 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Vulkan SB-2-wg | ||
"Adapted from Figure 5 of paper: Heterogeneous-race-free Memory Models" | ||
{ | ||
x=0; y=0; | ||
P0:r0=0; P1:r1=0; | ||
} | ||
P0@sg 0, wg 0, qf 0 | P1@sg 0, wg 0, qf 0 ; | ||
st.atom.rel.wg.sc0.semsc0 x, 1 | st.atom.rel.dv.sc0.semsc0 y, 1 ; | ||
ld.atom.acq.dv.sc0.semsc0 r0, y | ld.atom.acq.wg.sc0.semsc0 r1, x ; | ||
exists | ||
(P0:r0 == 0 /\ P1:r1 == 0) |