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
CUDApp / om / apirest / next.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note q: tile cursor, row base, count, bm, two acquired VAs, expert, row prefix, next expert. |
| 3 | fn arnext q edit ulong 12 cnt view uint * to ulong |
| 4 | for e ulong 4294967296 |
| 5 | if ge get q 8 len cnt |
| 6 | ret 0 |
| 7 | end |
| 8 | i = get q 8 |
| 9 | put q 8 add i 1 |
| 10 | n = get cnt i |
| 11 | if ne n 0 |
| 12 | put q 6 i |
| 13 | put q 1 get q 7 |
| 14 | put q 2 ulong n |
| 15 | put q 7 ulong add uint get q 7 n |
| 16 | ret 1 |
| 17 | end |
| 18 | end |
| 19 | ret 0 |
| 20 | end |