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 / core / vecspec.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note Copyright 2026 Drake Stapleton |
| 3 | fn omvspec p edit uchar 144 name view uchar 64 n ulong to long |
| 4 | if eq n 0 |
| 5 | ret -1 |
| 6 | end |
| 7 | for i ulong 144 |
| 8 | put p i uchar 0 |
| 9 | end |
| 10 | for i ulong 63 |
| 11 | c = get name i |
| 12 | if eq c 0 |
| 13 | break |
| 14 | end |
| 15 | put p add i 32 c |
| 16 | end |
| 17 | put p 96 uchar 3 |
| 18 | put p 100 uchar 32 |
| 19 | for i ulong 4 |
| 20 | put p add 104 i uchar and shr n mul i 8 255 |
| 21 | end |
| 22 | put p 108 uchar 1 |
| 23 | ret 0 |
| 24 | end |