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

95 lines · 957 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Literal output oracle only. No kexpect/keval calls construct expected values.
3fn csize id ulong to ulong
4if eq id 1
5ret 136
6end
7if eq id 2
8ret 160
9end
10if eq id 3
11ret 232
12end
13if eq id 4
14ret 116
15end
16if eq id 5
17ret 128
18end
19if eq id 6
20ret 164
21end
22if eq id 7
23ret 144
24end
25if eq id 8
26ret 156
27end
28ret 0
29end
30fn coutn id ulong to ulong
31if eq id 1
32ret 28
33end
34if eq id 2
35ret 40
36end
37if eq id 3
38ret 76
39end
40if and ge id 4 le id 6
41ret 12
42end
43if eq id 7
44ret 36
45end
46if eq id 8
47ret 32
48end
49ret 0
50end
51fn cvalues id ulong to void
52for i ulong 258
53cw i 2779096485
54end
55if eq id 1
56cw 1 0
57cw 3 11
58cw 5 15
59end
60if eq id 2
61for i ulong 8
62cw add i 1 16
63end
64end
65if eq id 3
66for i ulong 17
67cw add i 1 2
68end
69end
70if eq id 4
71cw 1 4
72end
73if eq id 5
74cw 1 4294967288
75end
76if eq id 6
77cw 1 4294967279
78end
79if eq id 7
80cw 1 21
81cw 2 24
82cw 3 27
83cw 5 47
84cw 6 54
85cw 7 61
86end
87if eq id 8
88cw 1 22
89cw 2 28
90cw 3 49
91cw 4 64
92cw 5 76
93cw 6 100
94end
95end