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 / pipeline / fixture.om

65 lines · 1199 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Synthetic policy controls only. Not GPU timing, qualification or activation.
3fn pl_fixture q edit ulong 64 a edit ulong 1024 to void
4for j ulong 64
5put q j 0
6end
7for j ulong 1024
8put a j 0
9end
10put q 0 1
11put q 1 3
12put q 2 0
13for j ulong 4
14put q add 3 j 1
15put q add 7 j 128
16end
17put q 11 1
18put q 12 1
19put q 13 100
20for j ulong 24
21put q add 14 j add j 1
22end
23for r ulong 3
24b = mul r 64
25put a b add r 1
26put a add b 1 31
27put a add b 2 63
28put a add b 3 100
29put a add b 9 100
30put a add b 10 1
31for j ulong 4
32put a add add b 11 j 1
33put a add add b 17 j 1
34end
35put a add b 15 1
36put a add b 16 1
37for j ulong 4
38put a add add b 21 j add j add mul r 4 17
39put a add add b 25 j add j 1
40put a add add b 29 j add j 1
41put a add add b 57 j add j 1
42end
43for j ulong 24
44put a add add b 33 j get q add 14 j
45end
46end
47note Incumbent identity is shared by dependency references, not each candidate ID.
48for j ulong 4
49put a add 21 j get q add 30 j
50end
51put a 67 41
52put a 73 41
53put a 131 41
54put a 137 41
55end
56fn pl_expect q view ulong 64 a view ulong 1024 o edit ulong 16 want ulong to int
57rc = pl_select q a o
58if ne rc 0
59ret 1
60end
61if ne get o 1 want
62ret 2
63end
64ret 0
65end