ggml-omega
aien-dev/ggml-omega
Brought by drakestapleton
ggml-omega / kernels / df32.om
| 1 | note df32_@T@: acc (f64 bits) + sum of f64(w*x) over @T@ lanes; fin 1 returns the f32 bits of the total. |
| 2 | fn df32_@T@ acc ulong w view f32 @T@ x view f32 @T@ fin ulong to ulong |
| 3 | s = bitcast f64 acc |
| 4 | for i ulong @T@ |
| 5 | s = add s f64 mul get w i get x i |
| 6 | end |
| 7 | if eq fin 1 |
| 8 | ret ulong bitcast uint f32 s |
| 9 | end |
| 10 | ret bitcast ulong s |
| 11 | end |