I could install caffe easily using conda create -n caffe_gpu -c defaults python=3.6 caffe-gpu.
But I want to compile the feature/20160617_cb_softattention branch of caffe as it contains some functions that i need to use. By following the compile steps given in the official documentation, it fails.
What steps should I follow?
Thanks in advance!
While installing caffe I am getting this error:
protobuf/generated_message_table_driven.h(210): error: static assertion failed with "" 1 error detected in the compilation of "/tmp/tmpxft_00007fe0_00000000-17_absval_layer.compute_61.cpp1.ii". Makefile:585: recipe for target '.build_release/cuda/src/caffe/layers/absval_layer.o' failed make: *** [.build_release/cuda/src/caffe/layers/absval_layer.o] Error 1
Please share how can I fix it.
I want to run deeplab v2 with caffe. I have ubuntu 14.04, cuda7, cudnn4, opencv3 in docker. While compiling I got "./include/caffe/util/device_alternate.hpp:34:23: fatal error: cublas_v2.h: No such file or directory
I am stuck with this problem from last a couple of days. Please help me.
In file included from /home/fccoelho/Code/caffe/src/caffe/util/math_functions.cu:1:0: /usr/local/cuda/include/math_functions.h:54:2: warning: #warning "math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp] #warning "math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." ^~~~~~~ In file included from /usr/local/cuda/include/cuda_runtime.h:115:0, from <command-line>:0: /usr/local/cuda/include/crt/common_functions.h:74:24: error: token ""__CUDACC_VER__ is no longer supported. Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported. Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead." ^ CMake Error at cuda_compile_1_generated_math_functions.cu.o.Release.cmake:220 (message): Error generating /home/fccoelho/Code/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/util/./cuda_compile_1_generated_math_functions.cu.o src/caffe/CMakeFiles/caffe.dir/build.make:517: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/util/cuda_compile_1_generated_math_functions.cu.o' failed make: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/util/cuda_compile_1_generated_math_functions.cu.o] Error 1 CMakeFiles/Makefile2:420: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed make: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2
Hello, I am installing coffe using make all command, and getting error: LD -o .build_release/lib/libcaffe.so.1.0.0
ld: warning: directory not found for option '-L/Users/MYUSERNAME/anaconda/lib'
ld: warning: directory not found for option '-L/usr/local/opt/opencv4/lib'
ld: framework not found vecLib
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: * [.build_release/lib/libcaffe.so.1.0.0] Error 1
Could you please let me know how to resolve it? No help found on google.
Try using different version of opencv
make sure the directory of anaconda was set properly on you makefile.config