官网: http://www.openblas.net/

先安装GCC-4.8.5

编译安装

  1. git clone https://github.com/xianyi/OpenBLAS.git
  2. cd OpenBLAS
  3. make FC=gfortran
  4. make PREFIX=/usr/local/openblas install

make步骤可能出现如下报错

../kernel/x86_64/dgemm_kernel_4x8_haswell.S:1759: Error: no such instruction: `vpermpd $ 0xb1,%ymm0,%ymm0

解决办法:在 **cpuid.h** 文件倒数第二行添加如下:

  1. #define NO_AVX2 1024

image.png
然后重新make