interplane.Get Omega
Read in your language

ggml-omega

aien-dev/ggml-omega

Brought by drakestapleton

branch main Branches Tags History

ggml-omega / kernels / sq.om

9 lines · 238 bytes Raw Blame History
1note sq_@T@: acc (f64 bits) + the sum over @T@ lanes of f64(x*x), the rms_norm sum of ggml-cpu.
2fn sq_@T@ acc ulong x view f32 @T@ to ulong
3s = bitcast f64 acc
4for i ulong @T@
5v = get x i
6s = add s f64 mul v v
7end
8ret bitcast ulong s
9end