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 / om / graph / aux.om

51 lines · 801 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Standalone decode glue and debug-read gather use the same packed wire ABI as layer nodes.
3fn mg_aux c view ulong 16 v view ulong 16 d edit ulong 64 to ulong
4for i ulong 64
5put d i 0
6end
7put d 2 1
8put d 3 1
9put d 4 get c 3
10if eq get c 0 0
11put d 5 12
12if eq get c 1 4
13put d 1 0
14put d 6 0
15else
16if eq get c 1 1
17put d 1 1
18put d 6 4
19else
20if ne get c 1 6
21ret 0
22end
23put d 1 2
24put d 6 9
25if eq get c 2 2
26put d 1 7
27end
28end
29end
30ret gr_pack v d 1
31end
32if eq get c 0 1
33put d 1 3
34if eq get c 2 1
35put d 1 6
36end
37put d 2 div get c 4 256
38put d 3 get c 5
39put d 4 mul get c 4 get c 5
40put d 5 5
41put d 6 7
42ret gr_pack v d 2
43end
44if ne get c 0 2
45ret 0
46end
47put d 3 div add get c 7 sub get c 6 1 get c 6
48put d 4 mul get d 3 get c 6
49put d 5 6
50ret gr_pack v d 4
51end