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 / key.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | fn arkey kind uint src view uint * y edit uint * to ulong |
| 3 | if gt add len src 1 len y |
| 4 | ret 1 |
| 5 | end |
| 6 | for i ulong len y |
| 7 | put y i 0 |
| 8 | end |
| 9 | put y 0 kind |
| 10 | for i ulong len src |
| 11 | put y add i 1 get src i |
| 12 | end |
| 13 | ret 0 |
| 14 | end |