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 / apiviews / scancarry.om

15 lines · 347 bytes Raw Blame History
1om2
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note Cross-tile carry: preserve tot[tile - 1] + out[e], including signed zeros.
4fn ar_carry src view f32 * dst edit f32 * to ulong
5n = len dst
6if lt len src div add n 31 32
7ret 1
8end
9e = ulong 32
10while lt e n
11put dst e add get src sub div e 32 1 get dst e
12e = add e 1
13end
14ret 0
15end