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 / tcinfo.om
| 1 | om2 |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | fn ar_tci y edit uint 24 i ulong v ulong to void |
| 4 | put y i uint and v 4294967295 |
| 5 | put y add i 1 uint shr v 32 |
| 6 | ret |
| 7 | end |
| 8 | fn artcinfo q view ulong 16 y edit uint 24 to ulong |
| 9 | for i ulong 24 |
| 10 | put y i 0 |
| 11 | end |
| 12 | for i ulong 9 |
| 13 | put y i uint get q i |
| 14 | end |
| 15 | put y 9 uint get q 2 |
| 16 | put y 10 uint get q 9 |
| 17 | ar_tci y 12 mul mul get q 1 get q 3 get q 4 |
| 18 | ar_tci y 14 mul mul get q 2 get q 3 get q 4 |
| 19 | ar_tci y 16 mul mul mul mul get q 2 get q 8 get q 5 get q 4 32 |
| 20 | put y 23 uint get q 10 |
| 21 | ret 0 |
| 22 | end |