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 / gargs.om

24 lines · 464 bytes Raw Blame History
1om2
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3fn argargs va view ulong 5 sc view uint 2 y edit uint * to ulong
4if lt len y 8
5ret 1
6end
7for i ulong len y
8put y i 0
9end
10for i ulong 3
11put y mul i 2 uint and get va i 4294967295
12put y add mul i 2 1 uint shr get va i 32
13end
14put y 6 get sc 0
15put y 7 get sc 1
16if ge len y 12
17for i ulong 2
18v = get va add i 3
19put y add 8 mul i 2 uint and v 4294967295
20put y add 9 mul i 2 uint shr v 32
21end
22end
23ret 0
24end