经过研究,我发现:
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.
答案 0 :(得分:2)
这是必要的改变:
make NO_AFFINITY=1 USE_OPENMP=0 USE_THREAD=0
如果只有一个核心可用,则可能会出现问题。