How can the C++ Eigen library perform better than specialized vendor libraries?

前端 未结 6 1264
执笔经年
执笔经年 2021-01-29 22:23

I was looking over the performance benchmarks: http://eigen.tuxfamily.org/index.php?title=Benchmark

I could not help but notice that eigen appears to consistently outper

6条回答
  •  抹茶落季
    2021-01-29 23:15

    Generic code can be fast because Compile Time Function Evaluation (CTFE) allows to choose optimal register blocking strategy (small temporary sub-matrixes stored in CPU registers).

    Mir GLAS and Intel MKL are faster than Eigen and OpenBLAS. Mir GLAS is more generic compared to Eigen. See also the benchmark and reddit thread.

提交回复
热议问题