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 / sstats.om
| 1 | om2 |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | fn arsstats q view ulong 8 st view ulong 7 y edit ulong 12 to ulong |
| 4 | put y 0 or ulong uint get q 0 shl ulong uint get q 1 32 |
| 5 | put y 1 get q 2 |
| 6 | v = mul get q 1 get q 2 |
| 7 | s = mul div get q 1 128 div get q 2 128 |
| 8 | v = add v mul s 4 |
| 9 | put y 2 mul get q 0 v |
| 10 | for i ulong 7 |
| 11 | put y add i 3 get st i |
| 12 | end |
| 13 | put y 10 get q 3 |
| 14 | put y 11 get q 4 |
| 15 | ret 0 |
| 16 | end |