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