Closed Sarah20187 closed 7 years ago
This seems to be a Caffee problem. Which version of Caffee are you using? Is this the one that has been advertised on the main readme? (a1c81aca641e5b16f3e2007be07dfdedc072606e
)
Yes,i use the first method,which download the caffe version you suggested itself. On Sat, 20 May 2017 at 14:33 Raffi Enficiaud notifications@github.com wrote:
This seems to be a Caffee problem. Which version of Caffee are you using? Is this the one that has been advertised on the main readme? ( a1c81aca641e5b16f3e2007be07dfdedc072606e)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MPI-IS/bilateralNN/issues/6#issuecomment-302870450, or mute the thread https://github.com/notifications/unsubscribe-auth/APZ21zZNxAXWZFXo_VelP8ZR0_BAXBTUks5r7t2ygaJpZM4NgoEs .
Thanks for reporting the error. From the error, it seems there is some incompatibility with 'cudnn_tanh_layer'. Are you able to install Caffe without any bilateral (permutohedral) layers? Can you please try the manual way of adding the bilateralNN layers to your Caffe and try recompiling? Thanks.
@raffienficiaud @varunjampani I tried the Manual way of Patching an existing Caffe version(reset the version to a1c81aca641e5b16f3e2007be07dfdedc072606e
). It works. Thank you!
Thats great. Thanks for reporting. I am closing this issue then.
I have the similar issue when I make bilateralNN, the cudnn and CUDA parts always have errors. And I try the manual way of Patching and , but it still doesn't work . How to find the caffe version (a1c81aca641e5b16f3e2007be07dfdedc072606e) ? The caffe version which I am using is the one proposed by BLVC.
Errors: (part of)
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_relu_layer.cu(18): error: argument of type "cudnnActivationMode_t" is incompatible with parameter of type "cudnnActivationDescriptor_t"
detected during instantiation of "void caffe::CuDNNReLULayer
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_relu_layer.cu(43): error: argument of type "cudnnActivationMode_t" is incompatible with parameter of type "cudnnActivationDescriptor_t"
detected during instantiation of "void caffe::CuDNNReLULayer
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_relu_layer.cu(18): error: argument of type "cudnnActivationMode_t" is incompatible with parameter of type "cudnnActivationDescriptor_t"
detected during instantiation of "void caffe::CuDNNReLULayer
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_relu_layer.cu(43): error: argument of type "cudnnActivationMode_t" is incompatible with parameter of type "cudnnActivationDescriptor_t"
detected during instantiation of "void caffe::CuDNNReLULayer
4 errors detected in the compilation of "/tmp/tmpxft_00005f34_00000000-7_cudnn_relu_layer.cpp1.ii". CMake Error at cuda_compile_generated_cudnn_relu_layer.cu.o.cmake:266 (message): Error generating file /home/lhl/bilateralNN/build/bin/src/caffe/CMakeFiles/cuda_compile.dir/layers/./cuda_compile_generated_cudnn_relu_layer.cu.o
src/caffe/CMakeFiles/caffe.dir/build.make:18511: recipe for target 'src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_cudnn_relu_layer.cu.o' failed
make[5]: [src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_cudnn_relu_layer.cu.o] Error 1
make[5]: Waiting for unfinished jobs....
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_sigmoid_layer.cu(13): error: argument of type "cudnnActivationMode_t" is incompatible with parameter of type "cudnnActivationDescriptor_t"
detected during instantiation of "void caffe::CuDNNSigmoidLayer
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_sigmoid_layer.cu(33): error: argument of type "cudnnActivationMode_t" is incompatible with parameter of type "cudnnActivationDescriptor_t"
detected during instantiation of "void caffe::CuDNNSigmoidLayer
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_sigmoid_layer.cu(13): error: argument of type "cudnnActivationMode_t" is incompatible with parameter of type "cudnnActivationDescriptor_t"
detected during instantiation of "void caffe::CuDNNSigmoidLayer
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_sigmoid_layer.cu(33): error: argument of type "cudnnActivationMode_t" is incompatible with parameter of type "cudnnActivationDescriptor_t"
detected during instantiation of "void caffe::CuDNNSigmoidLayer
4 errors detected in the compilation of "/tmp/tmpxft_00005ecb_00000000-7_cudnn_sigmoid_layer.cpp1.ii". CMake Error at cuda_compile_generated_cudnn_sigmoid_layer.cu.o.cmake:266 (message): Error generating file /home/lhl/bilateralNN/build/bin/src/caffe/CMakeFiles/cuda_compile.dir/layers/./cuda_compile_generated_cudnn_sigmoid_layer.cu.o
src/caffe/CMakeFiles/caffe.dir/build.make:5908: recipe for target 'src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_cudnn_sigmoid_layer.cu.o' failed make[5]: *** [src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_cudnn_sigmoid_layer.cu.o] Error 1 /home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/include/caffe/util/cudnn.hpp(107): error: too few arguments in function call
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/include/caffe/util/cudnn.hpp(126): error: argument of type "int" is incompatible with parameter of type "cudnnNanPropagation_t"
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/include/caffe/util/cudnn.hpp(126): error: too few arguments in function call
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_conv_layer.cu(85): error: identifier "cudnnConvolutionBackwardFilter_v3" is undefined
detected during instantiation of "void caffe::CuDNNConvolutionLayer
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_conv_layer.cu(103): error: identifier "cudnnConvolutionBackwardData_v3" is undefined
3 errors detected during instantiation of "void caffe::CuDNNConvolutionLayer
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_conv_layer.cu(85): error: identifier "cudnnConvolutionBackwardFilter_v3" is undefined
detected in the compilation of "/tmp/tmpxft_00005dfa_00000000-5_base_data_layer.cpp4.ii".
detected during instantiation of "void caffe::CuDNNConvolutionLayer
/home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/src/caffe/layers/cudnn_conv_layer.cu(103): error: identifier "cudnnConvolutionBackwardData_v3" is undefined
detected during instantiation of "void caffe::CuDNNConvolutionLayer
4 errors detected in the compilation of "/tmp/tmpxft_00005f52_00000000-7_cudnn_conv_layer.cpp1.ii". /home/lhl/bilateralNN/build/tmp_caffe_clone/src/CaffeUpstream/include/caffe/util/cudnn.hpp(107): error: too few arguments in function call ...
src/caffe/CMakeFiles/caffe.dir/build.make:16734: recipe for target 'src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_pixel_feature_layer.cu.o' failed make[5]: [src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_pixel_feature_layer.cu.o] Error 1 CMakeFiles/Makefile2:272: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed make[4]: [src/caffe/CMakeFiles/caffe.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make[3]: [all] Error 2 CMakeFiles/CaffeUpstream.dir/build.make:112: recipe for target 'tmp_caffe_clone/src/CaffeUpstream-stamp/CaffeUpstream-build' failed make[2]: [tmp_caffe_clone/src/CaffeUpstream-stamp/CaffeUpstream-build] Error 2 CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/CaffeUpstream.dir/all' failed make[1]: [CMakeFiles/CaffeUpstream.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: [all] Error 2
Seems like you have issues with CUDNN compatibility. Can you compile your default caffe without any of the bilateralNN layers? You can reset to the specific version with this command: git reset --hard a1c81aca641e5b16f3e2007be07dfdedc072606e or git checkout a1c81aca641e5b16f3e2007be07dfdedc072606e
@varunjampani Thanks for your help. But another new issue with CUDNN has arisen when I compile the caffe version (a1c81aca641e5b16f3e2007be07dfdedc072606e). I can compile my default caffe without any of the bilateralNN layers, but failed in the specific version. So I replace the old cudnn_* with the newest corresponding files to fix the problems. However when I compile the specific version caffe with bilateralNN, there are some errors with permutohedral_pooling_layer.
errors:
src/caffe/layers/permutohedral_pooling_layer.cpp: In member function ‘virtual void caffe::PermutohedralPoolingLayer
I can install successfully. But when I make bilateralNN, the cudnn parts always have errors. I wonder weather I need to set the makefile config? Errors:
I searched on google that this problem is caused by cudnn version. However, I tried cudnn v4,5,6 by
cmake -DCUDNN_INCLUDE=/home/sarah/dependencies/cudnn_v6_7.5/cuda/include/ -DCUDNN_LIBRARY=/home/sarah/dependencies/cudnn_v6_7.5/cuda/lib64 ..
but this problem still remains.figuration FYI