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 / tspec.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | fn artspec q view uint 8 y edit uint 10 to ulong |
| 3 | v = tgspec get q 2 get q 3 get q 1 |
| 4 | put y 0 get q 0 |
| 5 | put y 1 get q 1 |
| 6 | put y 2 uint and v 4294967295 |
| 7 | put y 3 2 |
| 8 | put y 4 uint shr v 32 |
| 9 | put y 5 32 |
| 10 | a = get q 4 |
| 11 | if eq a 0 |
| 12 | a = 1 |
| 13 | end |
| 14 | put y 6 a |
| 15 | put y 7 get q 5 |
| 16 | put y 8 get q 6 |
| 17 | put y 9 get q 7 |
| 18 | ret 0 |
| 19 | end |