错误:编译时未找到Lapack库(zerobrane,lua,torch)

时间:2018-01-16 20:29:50

标签: linux lua torch openblas zerobrane

经过研究,我发现:

git clone https://github.com/xianyi/OpenBLAS.git
cd OpenBLAS
make NO_AFFINITY=1 USE_OPENMP=1
sudo make install

CMAKE_LIBRARY_PATH=/opt/OpenBLAS/include:/opt/OpenBLAS/lib:$CMAKE_LIBRARY_PATH luarocks install torch

再次给我留下了一个错误:

Makefile.system:370: *** OpenBLAS: 
Cannot set both USE_OPENMP=1 and USE_THREAD=0. 
The USE_THREAD=0 is only for building single thread version.. Stop.

1 个答案:

答案 0 :(得分:2)

这是必要的改变:

make NO_AFFINITY=1 USE_OPENMP=0 USE_THREAD=0

如果只有一个核心可用,则可能会出现问题。