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 / argsx.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | fn arargsx va view ulong * sc view uint * y edit uint * to ulong |
| 3 | n = mul len va 2 |
| 4 | if gt add n len sc len y |
| 5 | ret 1 |
| 6 | end |
| 7 | for i ulong len y |
| 8 | put y i 0 |
| 9 | end |
| 10 | for i ulong len va |
| 11 | v = get va i |
| 12 | put y mul i 2 uint and v 4294967295 |
| 13 | put y add mul i 2 1 uint shr v 32 |
| 14 | end |
| 15 | for i ulong len sc |
| 16 | put y add n i get sc i |
| 17 | end |
| 18 | ret 0 |
| 19 | end |