2017-02-23 6 views
0

Ubuntu 16.04에서 OpenBLAS로 Caffe를 컴파일하려고합니다. 나는 다운로드 = 1 OpenBLAS 컴파일 괜찮와 모든 테스트는 Caffe 컴파일 중 오류가 발생했습니다.

OpenBLAS build complete. (BLAS CBLAS LAPACK LAPACKE) 

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

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. 

그러나 설치 CAFFE에 OpenBLAS libs와 함께 연결하는 다음과 같은 오류

을주고 실행 메이크업의 NO_AFFINITY = 1 USE_OPENMP와 OpenBLAS를 컴파일했다

Linking CXX executable upgrade_net_proto_binary /opt/OpenBLAS/lib/libopenblas.so: undefined reference to `[email protected]_4.0' collect2: error: ld returned 1 exit status tools/CMakeFiles/upgrade_net_proto_binary.dir/build.make:129: recipe for target 'tools/upgrade_net_proto_binary' failed make[2]: * [tools/upgrade_net_proto_binary] Error 1 CMakeFiles/Makefile2:403: recipe for target 'tools/CMakeFiles/upgrade_net_proto_binary.dir/all' failed make[1]: * [tools/CMakeFiles/upgrade_net_proto_binary.dir/all] Error 2

+0

libatlas-base-dev를 설치하고 BLAS 대신 위에 이것을 사용하면 위와 같은 작업을 수행 할 수 있습니다. 아직도 –

답변

0

대부분의 이유는 컴파일 된 OpenBLAS를 설치하고 설치 링크하는 대신 링크를 사용하기 때문일 수 있습니다. make을 실행 한 후 make install PREFIX=/path/to/install/OpenBLAS을 실행해야하며 설치된 버전에 연결해야합니다.

+0

내가 설치를 통해 그것을 설치했는지 알고 싶다. –