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
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note Native ABI1 embeds function-mode code, never an ELF program image. |
| 3 | global head uchar 4 |
| 4 | fn main to int |
| 5 | n = read 0 head 0 4 |
| 6 | if ne n 4 |
| 7 | ret 3 |
| 8 | end |
| 9 | if ne get head 0 127 |
| 10 | ret 0 |
| 11 | end |
| 12 | if ne get head 1 69 |
| 13 | ret 0 |
| 14 | end |
| 15 | if ne get head 2 76 |
| 16 | ret 0 |
| 17 | end |
| 18 | if ne get head 3 70 |
| 19 | ret 0 |
| 20 | end |
| 21 | ret 3 |
| 22 | end |