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

26 lines · 514 bytes Raw Blame History
1om2
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note q: next row, K, has cached rows; outputs source/destination offsets and cache miss.
4fn arxnext q edit ulong 16 rows view uint * have edit uchar * to ulong
5i = get q 0
6if ge i len rows
7ret 0
8end
9r = ulong get rows i
10put q 5 i
11put q 6 r
12put q 7 1
13if ne get q 2 0
14if ne get have r 0
15put q 7 0
16end
17put have r 1
18end
19put q 8 mul r get q 1
20put q 9 mul i get q 1
21put q 10 get q 1
22put q 11 mul get q 1 4
23put q 12 mul get q 1 2
24put q 0 add i 1
25ret 1
26end