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

22 lines · 373 bytes Raw Blame History
1om2
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3fn argath16 rows view uint * x view ushort * y edit ushort * to ulong
4if eq len rows 0
5ret 0
6end
7k = div len y len rows
8for r ulong 4294967296
9if ge r len rows
10break
11end
12p = mul ulong get rows r k
13d = mul r k
14for c ulong 18446744073709551615
15if ge c k
16break
17end
18put y add d c get x add p c
19end
20end
21ret 0
22end