先安装GCC-4.8.5
编译安装
git clone https://github.com/xianyi/OpenBLAS.git
cd OpenBLAS
make FC=gfortran
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**
文件倒数第二行添加如下:
#define NO_AVX2 1024
然后重新make