3 ms·
You could also use SIMD to compute N independent Kahan sums in parallel and reduce them at the end.
by screcth 2y ago
You could also use SIMD to compute N independent Kahan sums in parallel and reduce them at the end.
- orlp 2y agoI tried this, it was the same speed as orlp_sum with worse accuracy.
- RhysU 2y agoHow was the final reduction performed? Also Kahan?
- orlp 2y agoYes, although to be fair I did discard the c values for the final reduction I perhaps should've incorporated somehow. The code from the blog post is all on Github, feel free to try and add/benchmark it yourself: https://github.com/orlp/sum-bench/ https://github.com/orlp/sum-bench/.