OpenBLAS是高度优化的线性代数库。
1.下载编译
git clone https://github.com/xianyi/OpenBLAS.git
cd OpenBLAS
make
sudo make PREFIX=/usr/local/OpenBLAS install
2.CMakeLists
target_link_libraries(untitled1 /usr/local/OpenBLAS/lib/libopenblas.a)
链接blas动态库
target_link_libraries(untitled1 pthread)
线程操作需要pthread库
3.例子
void cblas_sgemm(CBLAS_LAYOUT