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 / segok.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | fn arsegok n uint cnt uint e view uint 4 sc view f32 4 to ulong |
| 3 | if ne segend 0 cnt 1 1 0 0 |
| 4 | ret 0 |
| 5 | end |
| 6 | prev = uint 0 |
| 7 | for i ulong ulong cnt |
| 8 | if eq finite bitcast uint get sc i 0 |
| 9 | ret 0 |
| 10 | end |
| 11 | if ne segend uint i cnt n get e i prev 0 |
| 12 | ret 0 |
| 13 | end |
| 14 | prev = get e i |
| 15 | end |
| 16 | ret 1 |
| 17 | end |