1

经过研究我发现:

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.
4

1 回答 1

3

这是必要的更改:

make NO_AFFINITY=1 USE_OPENMP=0 USE_THREAD=0

如果只有一个内核可用,可能会成为问题。

于 2018-01-16T20:29:49.840 回答