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

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