0

安装割炬时如下:

git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;

在这一步:

   bash install-deps

安装正确完成。但是我收到一条我不明白的消息。

  OS               ... Linux             
  Architecture     ... x86_64               
  BINARY           ... 64bit                 
  C compiler       ... GCC  (command line : gcc)
  Fortran compiler ... GFORTRAN  (command line : gfortran)
  Library Name     ... libopenblas_haswellp-r0.2.20.dev.a (Multi threaded; Max num-threads is 8)

 Use OpenMP in the multithreading. Because of ignoring OPENBLAS_NUM_THREADS and GOTO_NUM_THREADS flags, 
 you should use OMP_NUM_THREADS environment variable to control the number of threads.



To install the library, you can run "make PREFIX=/path/to/your/installation install".

make -j 8 -f Makefile.install install
make[1]: Entering directory '/tmp/OpenBLAS'
Generating openblas_config.h in /opt/OpenBLAS/include
Generating f77blas.h in /opt/OpenBLAS/include
Generating cblas.h in /opt/OpenBLAS/include
Copying LAPACKE header files to /opt/OpenBLAS/include
Copying the static library to /opt/OpenBLAS/lib
Copying the shared library to /opt/OpenBLAS/lib
Generating openblas.pc in /opt/OpenBLAS/lib/pkgconfig
Generating OpenBLASConfig.cmake in /opt/OpenBLAS/lib/cmake/openblas
Generating OpenBLASConfigVersion.cmake in /opt/OpenBLAS/lib/cmake/openblas
Install OK!
make[1]: Leaving directory '/tmp/OpenBLAS'
==> Torch7's dependencies have been installed

我不明白这一行:

To install the library, you can run "make PREFIX=/path/to/your/installation install".

要安装什么库以及如何安装?

运行前:

./install.sh
4

1 回答 1

1

此行是 OpenBLAS 安装的输出,我认为它是 Torch 的依赖项。

该声明说您可以更改OpenBLAS的默认安装路径,但在下一行: make -j 8 -f Makefile.install install 它正在安装库,您可以在它之后看到安装输出。

所以你不需要做任何事情。

于 2017-05-31T13:30:20.660 回答