interplane.Get Omega
Read in your language

ggml-omega

aien-dev/ggml-omega

Brought by drakestapleton

branch main Branches Tags History

ggml-omega / kernels / df32.om

11 lines · 319 bytes Raw Blame History
1note df32_@T@: acc (f64 bits) + sum of f64(w*x) over @T@ lanes; fin 1 returns the f32 bits of the total.
2fn df32_@T@ acc ulong w view f32 @T@ x view f32 @T@ fin ulong to ulong
3s = bitcast f64 acc
4for i ulong @T@
5s = add s f64 mul get w i get x i
6end
7if eq fin 1
8ret ulong bitcast uint f32 s
9end
10ret bitcast ulong s
11end