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

15 lines · 451 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Host verification reference: separate f64 accumulation and magnitude to fit six native slots.
3fn aracc w view uchar * sc view ushort * x view f32 * to ulong
4s = f64 0
5for i ulong 4294967296
6if ge i mul div len x 128 128
7break
8end
9p = f64 bitcast f32 refb uint get w i
10p = mul p f64 get x i
11p = mul p f64 bitcast f32 shl uint get sc div i 128 16
12s = add s p
13end
14ret bitcast ulong s
15end