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 / apirest / slot.om

28 lines · 736 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2fn arslot q edit ulong 8 r edit ulong 3 st edit ulong 7 to long
3rec = new ulong 16 0
4put rec 0 and get r 0 4294967295
5put rec 1 shr get r 0 32
6put rec 2 get r 1
7put rec 3 get r 2
8put rec 4 get q 0
9put rec 5 get q 1
10if ne get q 2 0
11put rec 6 1
12end
13for i ulong 6
14put rec add i 8 get st i
15end
16put rec 14 and get st 6 4294967295
17put rec 15 shr get st 6 32
18rc = apishl get q 3 get q 4 rec
19put r 0 or ulong uint and get rec 0 4294967295 shl ulong uint and get rec 1 4294967295 32
20put r 1 get rec 2
21put r 2 get rec 3
22put q 0 get rec 4
23for i ulong 6
24put st i get rec add i 8
25end
26put st 6 or ulong uint and get rec 14 4294967295 shl ulong uint and get rec 15 4294967295 32
27ret rc
28end