interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / om / apirest / pfhost.om

17 lines · 279 bytes Raw Blame History
1om2
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3fn pfreg w uint d uint to ulong
4if gt mul mul ulong 32 ulong w ulong d 65536
5ret 1
6end
7ret 0
8end
9fn pfcount x view f32 * to ulong
10n = ulong 0
11for i ulong len x
12if eq get x i -999.0f32
13n = add n 1
14end
15end
16ret n
17end