Im using Ubuntu 16.04, Python 2.7.12 Cuda 10 and Cudnn 7., and protoc version 3.11 ibprotoc 3.11.4. and protobuf 3. 11.4. as well. I followed the Ubuntu 16 Installation guide for Caffee here
Then find out that caffe is not compatible with cudnn 5.1, and a code error will be reported when compiling caffe with newer version of cudnn. As Im using cudnn 7 and Cuda 10 was wondering if the changes made in order to work with cudnn 5.1 can be good enough to work with v7. So far I done this:
Replaced the corresponding files of faster rcnn with the following files of the latest caffe source:
include / caffe / layers / cudnn_relu_layer.hpp, src / caffe / layers / cudnn_relu_layer.cpp, src / caffe / layers / cudnn_relu_layer.cu, src / caffe / layers / cudnn_sigmoid_layer.cpp, src / caffe / layers / cudnn_sigmoid_layer.cu, include / caffe / layers / cudnn_sigmoid_layer.hpp, include / caffe / layers / cudnn_tanh_layer.hpp, src / caffe / layers / cudnn_tanh_layer.cpp, src / caffe / layers / cudnn_tanh_layer.cu
Then Replace the corresponding file include / caffe / util / cudnn.hpp with this file in the caffe source code. Replace all cudnnConvolutionBackwardData_v3 function names in the src / caffe / layers / cudnn_conv_layer.cu with cudnnConvolutionBackwardData and cudnnConvolutionBackwardFilter_v3 function names with cudnnConvolutionBackwardFilter
So I was able to compile and pass all the test. In Makefile i done this settings
PYTHON_LIBRARIES := boost_python python2.7
For Makefile.config have this settings
Hello
Im using Ubuntu 16.04, Python 2.7.12 Cuda 10 and Cudnn 7., and protoc version 3.11 ibprotoc 3.11.4. and protobuf 3. 11.4. as well. I followed the Ubuntu 16 Installation guide for Caffee here
Then find out that caffe is not compatible with cudnn 5.1, and a code error will be reported when compiling caffe with newer version of cudnn. As Im using cudnn 7 and Cuda 10 was wondering if the changes made in order to work with cudnn 5.1 can be good enough to work with v7. So far I done this:
Replaced the corresponding files of faster rcnn with the following files of the latest caffe source:
include / caffe / layers / cudnn_relu_layer.hpp, src / caffe / layers / cudnn_relu_layer.cpp, src / caffe / layers / cudnn_relu_layer.cu, src / caffe / layers / cudnn_sigmoid_layer.cpp, src / caffe / layers / cudnn_sigmoid_layer.cu, include / caffe / layers / cudnn_sigmoid_layer.hpp, include / caffe / layers / cudnn_tanh_layer.hpp, src / caffe / layers / cudnn_tanh_layer.cpp, src / caffe / layers / cudnn_tanh_layer.cu
Then Replace the corresponding file include / caffe / util / cudnn.hpp with this file in the caffe source code. Replace all
cudnnConvolutionBackwardData_v3
function names in the src / caffe / layers / cudnn_conv_layer.cu withcudnnConvolutionBackwardData
andcudnnConvolutionBackwardFilter_v3
function names withcudnnConvolutionBackwardFilter
So I was able to compile and pass all the test. In Makefile i done this settings
PYTHON_LIBRARIES := boost_python python2.7
For Makefile.config have this settingsAfter success of all cafe test then I tried some examples demo I got this error
Try to solve it but no help. Please can you advice. Thanks