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 / pfhost.om
| 1 | om2 |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | fn pfreg w uint d uint to ulong |
| 4 | if gt mul mul ulong 32 ulong w ulong d 65536 |
| 5 | ret 1 |
| 6 | end |
| 7 | ret 0 |
| 8 | end |
| 9 | fn pfcount x view f32 * to ulong |
| 10 | n = ulong 0 |
| 11 | for i ulong len x |
| 12 | if eq get x i -999.0f32 |
| 13 | n = add n 1 |
| 14 | end |
| 15 | end |
| 16 | ret n |
| 17 | end |