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 / tests / learn53 / stream-input.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note Public fixture emitter, not candidate generation or a heldout task. |
| 3 | fn main to int |
| 4 | r = read 0 nums 0 1 |
| 5 | if ne r 1 |
| 6 | ret 64 |
| 7 | end |
| 8 | mode = ulong get nums 0 |
| 9 | frame |
| 10 | n = ulong 172 |
| 11 | if eq mode 1 |
| 12 | pw 148 9 |
| 13 | end |
| 14 | if eq mode 2 |
| 15 | n = 171 |
| 16 | end |
| 17 | if eq mode 3 |
| 18 | n = 173 |
| 19 | end |
| 20 | if eq mode 4 |
| 21 | pw 0 4294967295 |
| 22 | end |
| 23 | if eq mode 5 |
| 24 | pw 60 3 |
| 25 | end |
| 26 | w = write 1 packet 0 n |
| 27 | if ne w long n |
| 28 | ret 74 |
| 29 | end |
| 30 | ret 0 |
| 31 | end |