经过研究我发现:
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.