Re:Gonum – Numerical Computing for Go
by openasocket on Thursday September 21, 2017 @05:40PM
(#15307605)
I'm surprised your performance is anywhere near that of standard BLAS implementations. The Golang compiler doesn't have support for explicit SIMD or auto-vectorization, so that's a big performance gain just sitting there.
[ Parent
| on HN ]
Re:Gonum – Numerical Computing for Go
by howeman on Thursday September 21, 2017 @05:46PM
(#15307638)
For small vectors and matrices the cgo overhead swamps the assembly speedups. For large vectors cache misses dominate, and the assembly doesn't matter as much. It does matter significantly for medium vectors and large matrices. In that case we provide cgo wrappers and are working on SIMD kernels.