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 / amd-exec / ropefreq-probe.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note Test-only entry point composed with rope.om before its main. |
| 3 | fn main to int |
| 4 | for i ulong 32 |
| 5 | rput mul i 4 f64 rfreq i |
| 6 | end |
| 7 | n = ulong 0 |
| 8 | while lt n 128 bound 999999 |
| 9 | r = write 1 rout n sub 128 n |
| 10 | if le r 0 |
| 11 | ret 74 |
| 12 | end |
| 13 | n = add n ulong r |
| 14 | end |
| 15 | ret 0 |
| 16 | end |