interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / tests / speculation / report-test.om

205 lines · 3306 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2fn group n ulong to void
3fixture
4put pconfig 0 1024
5put pconfig 1 0
6put pconfig 2 1
7put pconfig 3 32
8put pconfig 4 0
9for i ulong 128
10put parmids i get sid rem i 32
11end
12check eq pstart n 0
13end
14fn trial ord ulong to void
15for i ulong 56
16put pobs i 0
17end
18put pobs 0 div ord 4
19arm = rem add ord div ord 4 4
20put pobs 1 arm
21for i ulong 32
22put pobs add i 24 get parmids add mul arm 32 i
23end
24put pobs 2 1
25for i ulong 8
26put pobs add i 3 add i 1
27end
28put pobs 11 64
29put pobs 12 1000
30put pobs 13 1010
31put pobs 14 1200
32if eq arm 3
33put pobs 14 1100
34end
35put pobs 15 1000
36put pobs 16 1
37put pobs 17 1
38put pobs 18 1
39put pobs 20 7
40put pobs 22 ord
41put pobs 23 1024
42end
43fn green to void
44group 8
45check eq pfinish 75
46for i ulong 32
47trial i
48check eq padd 0
49end
50check eq pfinish 0
51for a ulong 3
52check eq preport a 0
53check eq get summary 0 8
54check eq get summary 1 a
55check eq get summary 2 2000000
56check eq get summary 3 2000000
57check eq get summary 4 2000000
58check eq get summary 5 100
59check eq get summary 6 100
60check eq get summary 7 10
61check eq get summary 8 10
62check eq get summary 9 1000
63check eq get summary 10 1
64check eq get summary 11 1
65end
66check eq preport 3 65
67note Correctness mismatch poisons comparisons, even with explicit success flags.
68put praw add prow 0 3 7 999
69check eq pfinish 69
70check eq preport 0 69
71end
72fn small to void
73group 5
74for i ulong 20
75trial i
76check eq padd 0
77end
78check eq preport 2 0
79check eq get summary 10 0
80check eq get summary 3 0
81check eq get summary 4 18446744073709551615
82check eq prank 5 0
83check eq prank 6 1
84check eq prank 8 1
85check eq prank 10 2
86end
87fn outcomes to void
88group 6
89for i ulong 24
90trial i
91put pobs 14 1200
92check eq padd 0
93end
94check eq preport 1 0
95check eq get summary 10 2
96group 6
97for i ulong 24
98trial i
99if eq get pobs 1 3
100put pobs 14 1400
101end
102check eq padd 0
103end
104check eq preport 1 0
105check eq get summary 2 500000
106check eq get summary 10 3
107group 6
108for i ulong 24
109trial i
110put pobs 11 1
111check eq padd 0
112end
113check eq preport 1 0
114check eq get summary 10 0
115end
116fn invalid to void
117group 6
118trial 0
119put pobs 18 0
120check eq padd 75
121check eq get pstate 1 1
122check eq get praw 18 0
123check eq pfinish 75
124group 6
125trial 1
126check eq padd 65
127check eq pfinish 75
128group 6
129trial 0
130put pobs 13 999
131check eq padd 65
132group 6
133trial 0
134put pobs 14 1005
135check eq padd 65
136group 6
137trial 0
138put pobs 19 1
139check eq padd 75
140group 6
141trial 0
142put pobs 17 0
143check eq padd 69
144group 6
145trial 0
146put pobs 21 1
147check eq padd 69
148group 6
149trial 0
150put pobs 16 2
151check eq padd 65
152group 6
153trial 0
154put pobs 11 0
155check eq padd 65
156group 6
157trial 0
158put pobs 14 18446744073709551615
159check eq padd 65
160group 6
161trial 0
162put sid 7 999
163check eq padd 69
164group 6
165trial 0
166put pobs 24 999
167check eq padd 69
168group 6
169put parmids 12 999
170check eq pstart 6 0
171trial 0
172check eq padd 0
173group 6
174put parmids 44 999
175check eq pstart 6 69
176group 6
177put parmids 84 999
178check eq pstart 6 69
179group 6
180trial 0
181put pconfig 0 32768
182check eq padd 69
183group 6
184put pconfig 4 1
185check eq pstart 6 69
186check eq pstart 4 65
187check eq pstart 33 65
188end
189fn main to int
190green
191small
192outcomes
193invalid
194note Missing baseline identities must not make an unqualified base look comparable.
195for a ulong 2
196for d ulong 8
197group 6
198for j ulong 4
199put parmids add add mul a 32 mul d 4 j 0
200end
201check eq pstart 6 69
202end
203end
204ret finish
205end