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 / segok.om

17 lines · 325 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2fn arsegok n uint cnt uint e view uint 4 sc view f32 4 to ulong
3if ne segend 0 cnt 1 1 0 0
4ret 0
5end
6prev = uint 0
7for i ulong ulong cnt
8if eq finite bitcast uint get sc i 0
9ret 0
10end
11if ne segend uint i cnt n get e i prev 0
12ret 0
13end
14prev = get e i
15end
16ret 1
17end