2015-08-04 3 views
0

Я побежалСообщение об ошибке при установке команды Caffe «делают все»

cp Makefile.config.example Makefile.config 
make all 

как это было предложено на сайте, чтобы завершить установку. Я использую Ubuntu 14.04 с CUDA и OpenBlas.

Сообщения об ошибках показали следующие

CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin .build_release/lib/libcaffe.so: undefined reference to caffe::curandGetErrorString(curandStatus)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer::weight_gpu_gemm(double const*, double const*, double*)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer::forward_gpu_bias(double*, double const*)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer::forward_gpu_bias(float*, float const*)
.build_release/lib/libcaffe.so: undefined reference to caffe::cudnn::dataType::zero
.build_release/lib/libcaffe.so: undefined reference to caffe::cudnn::dataType::one
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer::backward_gpu_gemm(float const*, float const*, float*)
.build_release/lib/libcaffe.so: undefined reference to caffe::cublasGetErrorString(cublasStatus_t)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer::forward_gpu_gemm(double const*, double const*, double*, bool)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer::backward_gpu_gemm(double const*, double const*, double*)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer::backward_gpu_bias(double*, double const*)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer::forward_gpu_gemm(float const*, float const*, float*, bool)
.build_release/lib/libcaffe.so: undefined reference to caffe::cudnn::dataType::zero
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer::weight_gpu_gemm(float const*, float const*, float*)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer::backward_gpu_bias(float*, float const*)
.build_release/lib/libcaffe.so: undefined reference to caffe::cudnn::dataType::one
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/upgrade_net_proto_text.bin] Error 1

Я только модифицирована Makefile.config. Модифицированный Makefile.config представлены следующим образом

USE_CUDNN := 1 
CUSTOM_CXX := g++ 
CUDA_DIR := /usr/local/cuda 
      -gencode arch=compute_20,code=sm_21 \ 
      -gencode arch=compute_30,code=sm_30 \ 
      -gencode arch=compute_35,code=sm_35 \ 
      -gencode arch=compute_50,code=sm_50 \ 
      -gencode arch=compute_50,code=compute_50 
BLAS := OpenBlas 
PYTHON_INCLUDE := /usr/include/python2.7 \ 
/usr/lib/python2.7/dist-packages/numpy/core/include 
PYTHON_LIB := /usr/lib 
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include 
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib 
BUILD_DIR := build 
DISTRIBUTE_DIR := distribute 
TEST_GPUID := 0 
Q ?= @ 

ответ

1

Вы должны изменить настройки в BLASMakefile.config к

BLAS := open 

Вместо того 'OpenBlas'.

+1

Я заменил BLAS, но он все еще не работает. – ycliu

+0

@ycliu Вы уверены, что CUDA и все соответствующие драйверы установлены правильно? – Shai