Error: Lapack library not found in compile time (zerobrane, lua, torch)
Error: Lapack library not found in compile time (zerobrane, lua, torch)
经过研究我发现:
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.
这是必要的更改:
make NO_AFFINITY=1 USE_OPENMP=0 USE_THREAD=0
如果只有一个内核可用,可能会出现问题。
经过研究我发现:
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.
这是必要的更改:
make NO_AFFINITY=1 USE_OPENMP=0 USE_THREAD=0
如果只有一个内核可用,可能会出现问题。