-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ee7db6
commit 4b84cc8
Showing
19 changed files
with
145 additions
and
20 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
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
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
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
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,18 @@ | ||
PTX IRIW_gl_cta | ||
"CoRR" | ||
"https://github.com/johnwickerson/memalloy/blob/master/ptx_testing/IRIW_gl_cta/IRIW_gl_cta.txt" | ||
{ | ||
P0:r0=0; | ||
P1:r0=0; | ||
P1:r2=0; | ||
P2:r0=0; | ||
P3:r0=0; | ||
P3:r2=0; | ||
x=0; | ||
} | ||
P0@cta 0,gpu 0 | P1@cta 1,gpu 0 | P2@cta 1,gpu 0 | P3@cta 1,gpu 0 ; | ||
ld r0, 1 | ld.weak r0, x | ld r0, 1 | ld.weak r0, x ; | ||
st.weak x, r0 | fence.sc.gpu | st.weak x, r0 | fence.sc.cta ; | ||
| ld.weak r2, x | | ld.weak r2, x ; | ||
exists | ||
(P1:r0 == 1 /\ P1:r2 == 0 /\ P3:r0 == 1 /\ P3:r2 == 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,18 @@ | ||
PTX IRIW_uniproc | ||
"CoRR" | ||
"https://github.com/johnwickerson/memalloy/blob/master/ptx_testing/IRIW_uniproc/IRIW_uniproc.litmus" | ||
{ | ||
P0:r0=0; | ||
P1:r0=0; | ||
P1:r2=0; | ||
P2:r0=0; | ||
P3:r0=0; | ||
P3:r2=0; | ||
x=0; | ||
} | ||
P0@cta 0,gpu 0 | P1@cta 1,gpu 0 | P2@cta 1,gpu 0 | P3@cta 1,gpu 0 ; | ||
ld r0, 1 | ld.weak r0, x | ld r0, 2 | ld.weak r0, x ; | ||
st.weak x, r0 | fence.sc.cta | st.weak x, r0 | fence.sc.gpu ; | ||
| ld.weak r2, x | | ld.weak r2, x ; | ||
exists | ||
(P1:r0 == 1 /\ P1:r2 == 0 /\ P3:r0 == 2 /\ P3:r2 == 2 /\ x == 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,19 @@ | ||
PTX IRRWIW_uniproc | ||
"CoRR" | ||
"https://github.com/johnwickerson/memalloy/blob/master/ptx_testing/IRRWIW_uniproc/IRRWIW_uniproc.litmus" | ||
{ | ||
P0:r0=0; | ||
P1:r0=0; | ||
P1:r2=0; | ||
P2:r0=0; | ||
P3:r0=0; | ||
P3:r2=0; | ||
x=0; | ||
} | ||
P0@cta 0,gpu 0 | P1@cta 1,gpu 0 | P2@cta 1,gpu 0 | P3@cta 1,gpu 0 ; | ||
ld r0, 1 | ld.weak r0, x | ld r0, 2 | ld r2, 3 ; | ||
st.weak x, r0 | fence.sc.cta | st.weak x, r0 | ld.weak r0, x ; | ||
| ld.weak r2, x | | fence.sc.gpu ; | ||
| | | st.weak x, r2 ; | ||
exists | ||
(P1:r0 == 1 /\ P1:r2 == 0 /\ P3:r0 == 2 /\ x == 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,20 @@ | ||
PTX IRWIW_gl_cta | ||
"CoRR" | ||
"https://github.com/johnwickerson/memalloy/blob/master/ptx_testing/IRWIW_gl_cta/IRWIW_gl_cta.litmus" | ||
{ | ||
P0:r0=0; | ||
P1:r0=0; | ||
P1:r2=0; | ||
P2:r0=0; | ||
P3:r0=0; | ||
P3:r2=0; | ||
x=0; | ||
y=0; | ||
} | ||
P0@cta 0,gpu 0 | P1@cta 1,gpu 0 | P2@cta 1,gpu 0 | P3@cta 1,gpu 0 ; | ||
ld r0, 2 | ld r2, 1 | ld r0, 2 | ld r2, 2 ; | ||
st.weak x, r0 | ld.weak r0, x | st.weak y, r0 | ld.weak r0, y ; | ||
| fence.sc.gpu | | fence.sc.cta ; | ||
| st.weak y, r2 | | st.weak x, r2 ; | ||
exists | ||
(P1:r0 == 2 /\ P3:r0 == 2 /\ x == 2 /\ y == 2) |
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 @@ | ||
The tests in this folder were manually written using the tests from the [memalloy](https://github.com/johnwickerson/memalloy) repository as a guide. |
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,18 @@ | ||
PTX RWC_uniproc | ||
"CoRR" | ||
"https://github.com/johnwickerson/memalloy/blob/master/ptx_testing/RWC_uniproc/RWC_uniproc.litmus" | ||
{ | ||
P0:r0=0; | ||
P1:r0=0; | ||
P1:r2=0; | ||
P2:r0=0; | ||
P2:r2=0; | ||
x=0; | ||
} | ||
P0@cta 0,gpu 0 | P1@cta 1,gpu 0 | P2@cta 1,gpu 0 ; | ||
ld r0, 1 | ld.weak r0, x | ld r0, 2 ; | ||
st.weak x, r0 | fence.sc.cta | st.weak x, r0 ; | ||
| ld.weak r2, x | fence.sc.gpu ; | ||
| | ld.weak r2, x ; | ||
exists | ||
(P1:r0 == 1 /\ P1:r2 == 0 /\ P2:r2 == 2 /\ x == 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,19 @@ | ||
PTX WRR+2W | ||
"CoRR" | ||
"https://github.com/johnwickerson/memalloy/blob/master/ptx_testing/WRR%2B2W_uniproc/WRR%2B2W.litmus" | ||
{ | ||
P0:r0=0; | ||
P1:r0=0; | ||
P1:r2=0; | ||
P2:r0=0; | ||
P2:r2=0; | ||
x=0; | ||
} | ||
P0@cta 0,gpu 0 | P1@cta 1,gpu 0 | P2@cta 1,gpu 0 ; | ||
ld r0, 1 | ld.weak r0, x | ld r0, 2 ; | ||
st.weak x, r0 | fence.sc.cta | ld r2, 3 ; | ||
| ld.weak r2, x | st.weak x, r0 ; | ||
| | fence.sc.gpu ; | ||
| | st.weak x, r2 ; | ||
exists | ||
(P1:r0 == 1 /\ P1:r2 == 0 /\ x == 1) |