ggml-omega
aien-dev/ggml-omega
Brought by drakestapleton
ggml-omega / kernels / sq.om
| 1 | note sq_@T@: acc (f64 bits) + the sum over @T@ lanes of f64(x*x), the rms_norm sum of ggml-cpu. |
| 2 | fn sq_@T@ acc ulong x view f32 @T@ to ulong |
| 3 | s = bitcast f64 acc |
| 4 | for i ulong @T@ |
| 5 | v = get x i |
| 6 | s = add s f64 mul v v |
| 7 | end |
| 8 | ret bitcast ulong s |
| 9 | end |