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
Caffe compile error #58
Comments
When cmake, please replace the /path/to part with your real path to the cudnn directory. |
Thank you for your help! But, I have some problem like this #warning "Using deprecated NumPy API, disable it by " |
Did you compile the caffe successfully? Please check if there is |
@Cysu Hello, I use cuda-8.0, cudnn-8.0-linux-v5.1, all the dependencies are installed. But when I run the build code as you list, errors happened. The error information is listed: [ 5%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_cudnn_conv_layer.cu.o 1 error detected in the compilation of "/tmp/tmpxft_0000133a_00000000-5_im2col.cpp4.ii". src/caffe/CMakeFiles/caffe.dir/build.make:70: recipe for target 'src/caffe/CMakeFiles/cuda_compile.dir/util/cuda_compile_generated_im2col.cu.o' failed /home/amos/person_search/caffe/include/caffe/util/cudnn.hpp(107): error: too few arguments in function call 1 error detected in the compilation of "/tmp/tmpxft_00001343_00000000-5_labeled_matching_layer.cpp4.ii". src/caffe/CMakeFiles/caffe.dir/build.make:91: recipe for target 'src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_labeled_matching_layer.cu.o' failed |
Could you please show me the cmake command you used? |
@Cysu Thanks, The commands I used are as follows: |
@Cysu When I build caffe without cuDNN library support by setting USE_CUDNN OFF in the CMakeLists.txt, I build caffe successfully. Could you please tell me how to build it with cudnn support? Thanks very much. |
大佬,跟着你的步骤一步步向下做的,结果打编译caffe的时候出现了如下的问题,百度和google了一下还是找不到解决的方法,请指教一下下,谢啦! |
@XinshaoWang Duplicates with threads in #51. Already solved. @XiaoDin9 Please follow the README to run |
@foqin Any luck on your original issue? |
@foqin Please feel free to reopen the issue if there are further problems. |
i have the same problem using this commande :
|
@sanabouchama You are using a newer version of protobuf. Commenting out the second parameter in https://github.com/CMU-Perceptual-Computing-Lab/caffe/blob/b5ede488952e40861e84e51a9f9fd8fe2395cc8a/src/caffe/util/io.cpp#L57 worked for me. |
[ 83%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/channel.cpp.o
[ 83%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/cudnn.cpp.o
[ 84%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/db.cpp.o
[ 84%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/db_leveldb.cpp.o
[ 86%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/db_lmdb.cpp.o
[ 86%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/im2col.cpp.o
[ 87%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/insert_splits.cpp.o
[ 87%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/io.cpp.o
[ 87%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/math_functions.cpp.o
[ 88%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/mpi_functions.cpp.o
[ 88%] make[2]: *** No rule to make target
/path/to/cudnn/lib64/libcudnn.so', needed by
lib/libcaffe.so'. Stop.make[2]: *** Waiting for unfinished jobs....
Building CXX object src/caffe/CMakeFiles/caffe.dir/util/upgrade_proto.cpp.o
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: