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 / learn53 / moe-fixtures.om

151 lines · 3053 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note HOST_ONLY synthetic metadata. No accepted records, candidate execution or q=true.
3fn mf_fill b edit uchar 16384 to void
4for i ulong 16384
5put b i 0
6end
7mc_put edit b 0 2
8mc_put edit b 1 159
9mc_put edit b 2 11264
10mc_put edit b 3 1
11mc_put edit b 5 1
12mc_put edit b 7 1
13mc_put edit b 8 9
14mc_put edit b 9 2048
15mc_put edit b 10 512
16mc_put edit b 11 256
17mc_put edit b 12 8
18mc_put edit b 13 9
19mc_put edit b 14 256
20mc_put edit b 15 128
21mc_put edit b 16 256
22mc_put edit b 18 121
23mc_put edit b 19 5
24mc_put edit b 20 7
25mc_put edit b 22 11
26for i ulong 8
27mc_put edit b add 24 i 1
28end
29for i ulong 9
30mc_put edit b add 64 i i
31end
32mc_put edit b 73 17
33mc_put edit b 74 128
34mc_put edit b 77 2
35mc_put edit b 79 1
36mc_put edit b 112 1
37mc_put edit b 113 2
38mc_put edit b 114 2
39mc_put edit b 115 2
40mc_put edit b 116 8
41for i ulong 5
42mc_put edit b add 117 i 1
43end
44mc_put edit b 122 16
45mc_put edit b 123 16
46for i ulong 16
47p = mc_base i
48mc_put edit b p mul add i 1 16777216
49mc_put edit b add p 1 10485760
50gen = ulong 5
51if ge i 14
52gen = 11
53end
54mc_put edit b add p 2 gen
55stride = ulong 1
56if lt i 4
57stride = 256
58end
59if and ge i 4 lt i 6
60stride = 32
61end
62if and ge i 6 lt i 8
63stride = 4
64end
65if or eq i 8 eq i 13
66stride = mul ulong 2048 4
67end
68if eq i 9
69stride = mul mul ulong 9 512 8
70end
71if or eq i 10 eq i 11
72stride = mul mul ulong 9 512 4
73end
74if eq i 12
75stride = mul mul ulong 9 2048 4
76end
77mc_put edit b add p 3 stride
78end
79for i ulong 64
80for j ulong 32
81put b add add 1024 mul i 32 j uchar add i 1
82end
83end
84note Independent literal one-token oracle row: start0,count1,R9,all byte offsets0.
85mc_put edit b 385 1
86mc_put edit b 386 9
87end
88fn mf_context b view uchar 16384 q edit ulong 64 row edit ulong 64 to void
89for i ulong 64
90put q i 0
91put row i 0
92end
93put q 0 1
94put q 1 1
95put row 0 3
96for i ulong 4
97put q add i 3 mc_word b add i 17
98put row add i 17 mc_word b add i 17
99end
100for i ulong 6
101for j ulong 4
102v = mc_limb b add i 38 j
103put q add add 14 mul i 4 j v
104put row add add 33 mul i 4 j v
105end
106end
107for i ulong 4
108put row add 21 i mc_limb b 22 i
109put row add 25 i mc_limb b 24 i
110put row add 29 i mc_limb b 44 i
111put row add 57 i mc_limb b 23 i
112end
113end
114fn mf_cust b view uchar 16384 h view uchar 32 ctx edit ulong 32 to void
115for i ulong 32
116put ctx i 0
117end
118put ctx 0 1
119put ctx 1 1
120for i ulong 4
121v = ulong 0
122for j ulong 8
123v = or v shl ulong get h add mul i 8 j mul j 8
124end
125put ctx add i 2 v
126put ctx add i 6 mc_limb b 7 i
127put ctx add i 10 mc_limb b 3 i
128put ctx add i 14 mc_limb b 63 i
129put ctx add i 18 mc_limb b 39 i
130put ctx add i 22 mc_limb b 44 i
131end
132end
133fn mf_fifteen b edit uchar 16384 to void
134mf_fill edit b
135mc_put edit b 3 2
136mc_put edit b 4 1
137mc_put edit b 5 15
138mc_put edit b 6 14
139mc_put edit b 73 add mul ulong 15 9 8
140note Independent Wolfram literal oracle; exact query/result recorded in CONTRACT.
141mc_put edit b 385 14
142mc_put edit b 386 126
143mc_put edit b 392 14
144mc_put edit b 393 1
145mc_put edit b 394 9
146mc_put edit b 395 114688
147mc_put edit b 396 516096
148mc_put edit b 397 258048
149mc_put edit b 398 1032192
150mc_put edit b 399 3584
151end