-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: 'make all' #2855
Comments
Did you make modifications to the source code? |
@IMG-PRCSNG Thanks for you reminding. I added line and back-ticks to separate the error messages. |
Well, just in case, you are compiling with a wrong flag to blas. |
@IMG-PRCSNG mkdir build The process was done without error. And |
If you're using cmake, you don't also use the Makefile (in the root caffe directory). You use one or the other. Also, please ask this question on the caffe-users list.
|
I am getting following error for ~/caffe$ sudo make all Anyone pl help how to resolve it |
I ran
cp Makefile.config.example Makefile.config
make all
as suggested on the website to complete the installation.
I use Ubuntu 14.04 with CUDA and OpenBlas.
The error messages showed as follows
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<double>::weight_gpu_gemm(double const*, double const*, double*)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer<double>::forward_gpu_bias(double*, double const*)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer<float>::forward_gpu_bias(float*, float const*)
.build_release/lib/libcaffe.so: undefined reference to caffe::cudnn::dataType<double>::zero
.build_release/lib/libcaffe.so: undefined reference to caffe::cudnn::dataType<double>::one
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer<float>::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<double>::forward_gpu_gemm(double const*, double const*, double*, bool)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer<double>::backward_gpu_gemm(double const*, double const*, double*)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer<double>::backward_gpu_bias(double*, double const*)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer<float>::forward_gpu_gemm(float const*, float const*, float*, bool)
.build_release/lib/libcaffe.so: undefined reference to caffe::cudnn::dataType<float>::zero
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer<float>::weight_gpu_gemm(float const*, float const*, float*)
.build_release/lib/libcaffe.so: undefined reference to caffe::BaseConvolutionLayer<float>::backward_gpu_bias(float*, float const*)
.build_release/lib/libcaffe.so: undefined reference to caffe::cudnn::dataType<float>::one
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/upgrade_net_proto_text.bin] Error 1
I only modified
Makefile.config
.The modified
Makefile.config
shown as followsUSE_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 ?= @
I googled but there seemed no similar issues.
I have no idea about it.
Can anyone give me some help?
Thanks!
The text was updated successfully, but these errors were encountered: