Caffe make faild

nvidia@nvidia-desktop:~/caffe-master/build$ sudo make
[sudo] password for nvidia:
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at cmake/Misc.cmake:32 (set):
implicitly converting ‘BOOLEAN’ to ‘STRING’ type.
Call Stack (most recent call first):
CMakeLists.txt:25 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

– Found Boost: /usr/include (found suitable version “1.65.1”, minimum required is “1.54”) found components: system thread filesystem chrono date_time atomic
– Found gflags (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libgflags.so)
– Found glog (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libglog.so)
– Found PROTOBUF Compiler: /usr/bin/protoc
– Found lmdb (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/liblmdb.so)
– Found LevelDB (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libleveldb.so)
– Found Snappy (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libsnappy.so)
– CUDA detected: 10.2
– Found cuDNN: ver. 8.0.0 found (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libcudnn.so)
– Added CUDA NVCC flags for: sm_53
– OpenCV found (/usr/lib/aarch64-linux-gnu/cmake/opencv4)
– Found Atlas (include: /usr/include/aarch64-linux-gnu library: /usr/lib/aarch64-linux-gnu/libatlas.so lapack: /usr/lib/aarch64-linux-gnu/liblapack.so
– NumPy ver. 1.13.3 found (include: /usr/lib/python2.7/dist-packages/numpy/core/include)
– Found Boost: /usr/include (found suitable version “1.65.1”, minimum required is “1.46”) found components: python
– Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

– ******************* Caffe Configuration Summary *******************
– General:
– Version : 1.0.0
– Git : unknown
– System : Linux
– C++ compiler : /usr/bin/c++
– Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
– Debug CXX flags : -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
– Build type : Release

– BUILD_SHARED_LIBS : ON
– BUILD_python : ON
– BUILD_matlab : OFF
– BUILD_docs : ON
– CPU_ONLY : OFF
– USE_OPENCV : ON
– USE_LEVELDB : ON
– USE_LMDB : ON
– USE_NCCL : OFF
– ALLOW_LMDB_NOLOCK : OFF
– USE_HDF5 : ON

– Dependencies:
– BLAS : Yes (Atlas)
– Boost : Yes (ver. 1.65)
– glog : Yes
– gflags : Yes
– protobuf : Yes (ver. 3.0.0)
– lmdb : Yes (ver. 0.9.21)
– LevelDB : Yes (ver. 1.20)
– Snappy : Yes (ver. …)
– OpenCV : Yes (ver. 4.1.1)
– CUDA : Yes (ver. 10.2)

– NVIDIA CUDA:
– Target GPU(s) : Auto
– GPU arch(s) : sm_53
– cuDNN : Yes (ver. 8.0.0)

– Python:
– Interpreter : /usr/bin/python2.7 (ver. 2.7.17)
– Libraries : /usr/lib/aarch64-linux-gnu/libpython2.7.so (ver 2.7.17)
– NumPy : /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.13.3)

– Documentaion:
– Doxygen : No
– config_file :

– Install:
– Install path : /home/nvidia/caffe-master/.build_release/install

– Configuring done
– Generating done
– Build files have been written to: /home/nvidia/caffe-master/.build_release
Consolidate compiler generated dependencies of target caffeproto
[ 1%] Built target caffeproto
Consolidate compiler generated dependencies of target caffe
[ 1%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/cudnn_conv_layer.cpp.o
In file included from /home/nvidia/caffe-master/include/caffe/util/device_alternate.hpp:40:0,
from /home/nvidia/caffe-master/include/caffe/common.hpp:19,
from /home/nvidia/caffe-master/include/caffe/blob.hpp:8,
from /home/nvidia/caffe-master/include/caffe/layers/cudnn_conv_layer.hpp:6,
from /home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:5:
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’:
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:21:10: warning: enumeration value ‘CUDNN_STATUS_VERSION_MISMATCH’ not handled in switch [-Wswitch]
switch (status) {
^
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp: In member function ‘virtual void caffe::CuDNNConvolutionLayer::Reshape(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&)’:
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:136:7: error: ‘CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT’ was not declared in this scope
CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT,
^
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^~~~~~~~~
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:136:7: note: suggested alternative: ‘CUDNN_CONVOLUTION_FWD_ALGO_DIRECT’
CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT,
^
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^~~~~~~~~
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:131:17: error: there are no arguments to ‘cudnnGetConvolutionForwardAlgorithm’ that depend on a template parameter, so a declaration of ‘cudnnGetConvolutionForwardAlgorithm’ must be available [-fpermissive]
CUDNN_CHECK(cudnnGetConvolutionForwardAlgorithm(handle_[0],
^
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^~~~~~~~~
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:131:17: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
CUDNN_CHECK(cudnnGetConvolutionForwardAlgorithm(handle_[0],
^
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^~~~~~~~~
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:151:11: error: ‘CUDNN_CONVOLUTION_BWD_FILTER_SPECIFY_WORKSPACE_LIMIT’ was not declared in this scope
CUDNN_CONVOLUTION_BWD_FILTER_SPECIFY_WORKSPACE_LIMIT,
^
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^~~~~~~~~
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:151:11: note: suggested alternative: ‘CUDNN_CONVOLUTION_BWD_FILTER_ALGO_COUNT’
CUDNN_CONVOLUTION_BWD_FILTER_SPECIFY_WORKSPACE_LIMIT,
^
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^~~~~~~~~
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:149:17: error: there are no arguments to ‘cudnnGetConvolutionBackwardFilterAlgorithm’ that depend on a template parameter, so a declaration of ‘cudnnGetConvolutionBackwardFilterAlgorithm’ must be available [-fpermissive]
CUDNN_CHECK(cudnnGetConvolutionBackwardFilterAlgorithm(handle_[0],
^
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^~~~~~~~~
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:162:11: error: ‘CUDNN_CONVOLUTION_BWD_DATA_SPECIFY_WORKSPACE_LIMIT’ was not declared in this scope
CUDNN_CONVOLUTION_BWD_DATA_SPECIFY_WORKSPACE_LIMIT,
^
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^~~~~~~~~
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:162:11: note: suggested alternative: ‘CUDNN_CONVOLUTION_BWD_DATA_ALGO_COUNT’
CUDNN_CONVOLUTION_BWD_DATA_SPECIFY_WORKSPACE_LIMIT,
^
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^~~~~~~~~
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:160:17: error: there are no arguments to ‘cudnnGetConvolutionBackwardDataAlgorithm’ that depend on a template parameter, so a declaration of ‘cudnnGetConvolutionBackwardDataAlgorithm’ must be available [-fpermissive]
CUDNN_CHECK(cudnnGetConvolutionBackwardDataAlgorithm(handle_[0],
^
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^~~~~~~~~
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp: In instantiation of ‘void caffe::CuDNNConvolutionLayer::Reshape(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&) [with Dtype = float]’:
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:266:1: required from here
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:131:52: error: ‘cudnnGetConvolutionForwardAlgorithm’ was not declared in this scope
CUDNN_CHECK(cudnnGetConvolutionForwardAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~^~
bottom_descs_[i],
~~~~~~~~~~~~~~~~~
filter_desc_,
~~~~~~~~~~~~~
conv_descs_[i],
~~~~~~~~~~~~~~~
top_descs_[i],
~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes,
~~~~~~~~~~~~~~~~~~~~~~
&fwd_algo_[i]));
~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:131:52: note: suggested alternative: ‘cudnnGetConvolutionForwardAlgorithm_v7’
CUDNN_CHECK(cudnnGetConvolutionForwardAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~^~
bottom_descs_[i],
~~~~~~~~~~~~~~~~~
filter_desc_,
~~~~~~~~~~~~~
conv_descs_[i],
~~~~~~~~~~~~~~~
top_descs_[i],
~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes,
~~~~~~~~~~~~~~~~~~~~~~
&fwd_algo_[i]));
~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:149:59: error: ‘cudnnGetConvolutionBackwardFilterAlgorithm’ was not declared in this scope
CUDNN_CHECK(cudnnGetConvolutionBackwardFilterAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~~~~~~~~^~
bottom_descs_[i], top_descs_[i], conv_descs_[i], filter_desc_,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_BWD_FILTER_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes, &bwd_filter_algo_[i]) );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:149:59: note: suggested alternative: ‘cudnnGetConvolutionBackwardFilterAlgorithm_v7’
CUDNN_CHECK(cudnnGetConvolutionBackwardFilterAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~~~~~~~~^~
bottom_descs_[i], top_descs_[i], conv_descs_[i], filter_desc_,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_BWD_FILTER_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes, &bwd_filter_algo_[i]) );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:160:57: error: ‘cudnnGetConvolutionBackwardDataAlgorithm’ was not declared in this scope
CUDNN_CHECK(cudnnGetConvolutionBackwardDataAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~~~~~~^~
filter_desc_, top_descs_[i], conv_descs_[i], bottom_descs_[i],
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_BWD_DATA_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes, &bwd_data_algo_[i]));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:160:57: note: suggested alternative: ‘cudnnGetConvolutionBackwardDataAlgorithm_v7’
CUDNN_CHECK(cudnnGetConvolutionBackwardDataAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~~~~~~^~
filter_desc_, top_descs_[i], conv_descs_[i], bottom_descs_[i],
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_BWD_DATA_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes, &bwd_data_algo_[i]));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp: In instantiation of ‘void caffe::CuDNNConvolutionLayer::Reshape(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&) [with Dtype = double]’:
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:266:1: required from here
/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:131:52: error: ‘cudnnGetConvolutionForwardAlgorithm’ was not declared in this scope
CUDNN_CHECK(cudnnGetConvolutionForwardAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~^~
bottom_descs_[i],
~~~~~~~~~~~~~~~~~
filter_desc_,
~~~~~~~~~~~~~
conv_descs_[i],
~~~~~~~~~~~~~~~
top_descs_[i],
~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes,
~~~~~~~~~~~~~~~~~~~~~~
&fwd_algo_[i]));
~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:131:52: note: suggested alternative: ‘cudnnGetConvolutionForwardAlgorithm_v7’
CUDNN_CHECK(cudnnGetConvolutionForwardAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~^~
bottom_descs_[i],
~~~~~~~~~~~~~~~~~
filter_desc_,
~~~~~~~~~~~~~
conv_descs_[i],
~~~~~~~~~~~~~~~
top_descs_[i],
~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes,
~~~~~~~~~~~~~~~~~~~~~~
&fwd_algo_[i]));
~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:149:59: error: ‘cudnnGetConvolutionBackwardFilterAlgorithm’ was not declared in this scope
CUDNN_CHECK(cudnnGetConvolutionBackwardFilterAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~~~~~~~~^~
bottom_descs_[i], top_descs_[i], conv_descs_[i], filter_desc_,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_BWD_FILTER_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes, &bwd_filter_algo_[i]) );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:149:59: note: suggested alternative: ‘cudnnGetConvolutionBackwardFilterAlgorithm_v7’
CUDNN_CHECK(cudnnGetConvolutionBackwardFilterAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~~~~~~~~^~
bottom_descs_[i], top_descs_[i], conv_descs_[i], filter_desc_,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_BWD_FILTER_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes, &bwd_filter_algo_[i]) );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:160:57: error: ‘cudnnGetConvolutionBackwardDataAlgorithm’ was not declared in this scope
CUDNN_CHECK(cudnnGetConvolutionBackwardDataAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~~~~~~^~
filter_desc_, top_descs_[i], conv_descs_[i], bottom_descs_[i],
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_BWD_DATA_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes, &bwd_data_algo_[i]));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

/home/nvidia/caffe-master/src/caffe/layers/cudnn_conv_layer.cpp:160:57: note: suggested alternative: ‘cudnnGetConvolutionBackwardDataAlgorithm_v7’
CUDNN_CHECK(cudnnGetConvolutionBackwardDataAlgorithm(handle_[0],
~~~~~~~~~~~~~~~~~~~~~~^~
filter_desc_, top_descs_[i], conv_descs_[i], bottom_descs_[i],
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_BWD_DATA_SPECIFY_WORKSPACE_LIMIT,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
workspace_limit_bytes, &bwd_data_algo_[i]));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/caffe-master/include/caffe/util/cudnn.hpp:15:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition;
^

src/caffe/CMakeFiles/caffe.dir/build.make:39275: recipe for target ‘src/caffe/CMakeFiles/caffe.dir/layers/cudnn_conv_layer.cpp.o’ failed
make[2]: *** [src/caffe/CMakeFiles/caffe.dir/layers/cudnn_conv_layer.cpp.o] Error 1
CMakeFiles/Makefile2:377: recipe for target ‘src/caffe/CMakeFiles/caffe.dir/all’ failed
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:135: recipe for target ‘all’ failed
make: *** [all] Error 2
nvidia@nvidia-desktop:~/caffe-master/build$

Hi,

Please find a tutorial below:

Thanks.

You didn’t use reverse cudnn acceleration. I still want to use CUDA_ DIR := /usr/local/cuda-10.2

Your is / usr / local / CUDA

./include/caffe/layers/cudnn_softmax_layer.hpp:37:3: error: ‘cudnnHandle_t’ does not name a type
cudnnHandle_t handle_;
^~~~~~~~~~~~~
./include/caffe/layers/cudnn_softmax_layer.hpp:38:3: error: ‘cudnnTensorDescriptor_t’ does not name a type
cudnnTensorDescriptor_t bottom_desc_;
^~~~~~~~~~~~~~~~~~~~~~~
./include/caffe/layers/cudnn_softmax_layer.hpp:39:3: error: ‘cudnnTensorDescriptor_t’ does not name a type
cudnnTensorDescriptor_t top_desc_;
^~~~~~~~~~~~~~~~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp: In member function ‘virtual void caffe::CuDNNSoftmaxLayer::LayerSetUp(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&)’:
src/caffe/layers/cudnn_softmax_layer.cpp:15:28: error: ‘handle_’ was not declared in this scope
CUDNN_CHECK(cudnnCreate(&handle_));
^~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:15:15: error: there are no arguments to ‘cudnnCreate’ that depend on a template parameter, so a declaration of ‘cudnnCreate’ must be available [-fpermissive]
CUDNN_CHECK(cudnnCreate(&handle_));
^~~~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:15:15: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
src/caffe/layers/cudnn_softmax_layer.cpp:16:3: error: ‘cudnn’ has not been declared
cudnn::createTensor4dDesc(&bottom_desc_);
^~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:16:34: error: expected primary-expression before ‘>’ token
cudnn::createTensor4dDesc(&bottom_desc_);
^
src/caffe/layers/cudnn_softmax_layer.cpp:16:37: error: ‘bottom_desc_’ was not declared in this scope
cudnn::createTensor4dDesc(&bottom_desc_);
^~~~~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:16:37: note: suggested alternative: ‘bottom’
cudnn::createTensor4dDesc(&bottom_desc_);
^~~~~~~~~~~~
bottom
src/caffe/layers/cudnn_softmax_layer.cpp:17:3: error: ‘cudnn’ has not been declared
cudnn::createTensor4dDesc(&top_desc_);
^~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:17:34: error: expected primary-expression before ‘>’ token
cudnn::createTensor4dDesc(&top_desc_);
^
src/caffe/layers/cudnn_softmax_layer.cpp:17:37: error: ‘top_desc_’ was not declared in this scope
cudnn::createTensor4dDesc(&top_desc_);
^~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp: In member function ‘virtual void caffe::CuDNNSoftmaxLayer::Reshape(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&)’:
src/caffe/layers/cudnn_softmax_layer.cpp:29:3: error: ‘cudnn’ has not been declared
cudnn::setTensor4dDesc(&bottom_desc_, N, K, H, W);
^~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:29:31: error: expected primary-expression before ‘>’ token
cudnn::setTensor4dDesc(&bottom_desc_, N, K, H, W);
^
src/caffe/layers/cudnn_softmax_layer.cpp:29:34: error: ‘bottom_desc_’ was not declared in this scope
cudnn::setTensor4dDesc(&bottom_desc_, N, K, H, W);
^~~~~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:29:34: note: suggested alternative: ‘bottom’
cudnn::setTensor4dDesc(&bottom_desc_, N, K, H, W);
^~~~~~~~~~~~
bottom
src/caffe/layers/cudnn_softmax_layer.cpp:30:3: error: ‘cudnn’ has not been declared
cudnn::setTensor4dDesc(&top_desc_, N, K, H, W);
^~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:30:31: error: expected primary-expression before ‘>’ token
cudnn::setTensor4dDesc(&top_desc_, N, K, H, W);
^
src/caffe/layers/cudnn_softmax_layer.cpp:30:34: error: ‘top_desc_’ was not declared in this scope
cudnn::setTensor4dDesc(&top_desc_, N, K, H, W);
^~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp: In destructor ‘virtual caffe::CuDNNSoftmaxLayer::~CuDNNSoftmaxLayer()’:
src/caffe/layers/cudnn_softmax_layer.cpp:38:32: error: ‘bottom_desc_’ was not declared in this scope
cudnnDestroyTensorDescriptor(bottom_desc_);
^~~~~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:38:3: error: there are no arguments to ‘cudnnDestroyTensorDescriptor’ that depend on a template parameter, so a declaration of ‘cudnnDestroyTensorDescriptor’ must be available [-fpermissive]
cudnnDestroyTensorDescriptor(bottom_desc_);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:39:32: error: ‘top_desc_’ was not declared in this scope
cudnnDestroyTensorDescriptor(top_desc_);
^~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:39:3: error: there are no arguments to ‘cudnnDestroyTensorDescriptor’ that depend on a template parameter, so a declaration of ‘cudnnDestroyTensorDescriptor’ must be available [-fpermissive]
cudnnDestroyTensorDescriptor(top_desc_);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:40:16: error: ‘handle_’ was not declared in this scope
cudnnDestroy(handle_);
^~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:40:3: error: there are no arguments to ‘cudnnDestroy’ that depend on a template parameter, so a declaration of ‘cudnnDestroy’ must be available [-fpermissive]
cudnnDestroy(handle_);
^~~~~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp: In instantiation of ‘void caffe::CuDNNSoftmaxLayer::LayerSetUp(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&) [with Dtype = float]’:
src/caffe/layers/cudnn_softmax_layer.cpp:43:1: required from here
src/caffe/layers/cudnn_softmax_layer.cpp:15:35: error: ‘cudnnCreate’ was not declared in this scope
CUDNN_CHECK(cudnnCreate(&handle_));
^
src/caffe/layers/cudnn_softmax_layer.cpp:15:35: note: suggested alternative: ‘cudaFree’
CUDNN_CHECK(cudnnCreate(&handle_));
^
cudaFree
src/caffe/layers/cudnn_softmax_layer.cpp:15:14: error: ‘CUDNN_CHECK’ was not declared in this scope
CUDNN_CHECK(cudnnCreate(&handle_));

src/caffe/layers/cudnn_softmax_layer.cpp:15:14: note: suggested alternative: ‘DCHECK’
CUDNN_CHECK(cudnnCreate(&handle_));
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
DCHECK
src/caffe/layers/cudnn_softmax_layer.cpp: In instantiation of ‘caffe::CuDNNSoftmaxLayer<Dtype>::~CuDNNSoftmaxLayer() [with Dtype = float]’:
src/caffe/layers/cudnn_softmax_layer.cpp:43:1:   required from here
src/caffe/layers/cudnn_softmax_layer.cpp:38:44: error: ‘cudnnDestroyTensorDescriptor’ was not declared in this scope
cudnnDestroyTensorDescriptor(bottom_desc_);
                                         ^
src/caffe/layers/cudnn_softmax_layer.cpp:38:44: note: suggested alternative: ‘cudaDestroyTextureObject’
cudnnDestroyTensorDescriptor(bottom_desc_);
                                         ^
                                         cudaDestroyTextureObject
src/caffe/layers/cudnn_softmax_layer.cpp:39:41: error: ‘cudnnDestroyTensorDescriptor’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
cudnnDestroyTensorDescriptor(top_desc_);
                                      ^
src/caffe/layers/cudnn_softmax_layer.cpp:38:44: note: ‘cudnnDestroyTensorDescriptor’ declared here, later in the translation unit
cudnnDestroyTensorDescriptor(bottom_desc_);
                                         ^
src/caffe/layers/cudnn_softmax_layer.cpp:40:23: error: ‘cudnnDestroy’ was not declared in this scope
cudnnDestroy(handle_);
                    ^
src/caffe/layers/cudnn_softmax_layer.cpp:40:23: note: suggested alternative: ‘cudaEventDestroy’
cudnnDestroy(handle_);
                    ^
                    cudaEventDestroy
src/caffe/layers/cudnn_softmax_layer.cpp: In instantiation of ‘void caffe::CuDNNSoftmaxLayer<Dtype>::LayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = double]’:
src/caffe/layers/cudnn_softmax_layer.cpp:43:1:   required from here
src/caffe/layers/cudnn_softmax_layer.cpp:15:35: error: ‘cudnnCreate’ was not declared in this scope
CUDNN_CHECK(cudnnCreate(&handle_));
                                ^
src/caffe/layers/cudnn_softmax_layer.cpp:15:35: note: suggested alternative: ‘cudaFree’
CUDNN_CHECK(cudnnCreate(&handle_));
                                ^
                                cudaFree
src/caffe/layers/cudnn_softmax_layer.cpp:15:14: error: ‘CUDNN_CHECK’ was not declared in this scope
CUDNN_CHECK(cudnnCreate(&handle_));
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
src/caffe/layers/cudnn_softmax_layer.cpp:15:14: note: suggested alternative: ‘DCHECK’
CUDNN_CHECK(cudnnCreate(&handle_));
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
DCHECK
src/caffe/layers/cudnn_softmax_layer.cpp: In instantiation of ‘caffe::CuDNNSoftmaxLayer<Dtype>::~CuDNNSoftmaxLayer() [with Dtype = double]’:
src/caffe/layers/cudnn_softmax_layer.cpp:43:1:   required from here
src/caffe/layers/cudnn_softmax_layer.cpp:38:44: error: ‘cudnnDestroyTensorDescriptor’ was not declared in this scope
cudnnDestroyTensorDescriptor(bottom_desc_);
                                         ^
src/caffe/layers/cudnn_softmax_layer.cpp:38:44: note: suggested alternative: ‘cudaDestroyTextureObject’
cudnnDestroyTensorDescriptor(bottom_desc_);
                                         ^
                                         cudaDestroyTextureObject
src/caffe/layers/cudnn_softmax_layer.cpp:39:41: error: ‘cudnnDestroyTensorDescriptor’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
cudnnDestroyTensorDescriptor(top_desc_);
                                      ^
src/caffe/layers/cudnn_softmax_layer.cpp:38:44: note: ‘cudnnDestroyTensorDescriptor’ declared here, later in the translation unit
cudnnDestroyTensorDescriptor(bottom_desc_);
                                         ^
src/caffe/layers/cudnn_softmax_layer.cpp:40:23: error: ‘cudnnDestroy’ was not declared in this scope
cudnnDestroy(handle_);
                    ^
src/caffe/layers/cudnn_softmax_layer.cpp:40:23: note: suggested alternative: ‘cudaEventDestroy’
cudnnDestroy(handle_);
                    ^
                    cudaEventDestroy
Makefile:594: recipe for target '.build_release/src/caffe/layers/cudnn_softmax_layer.o' failed
make: *** [.build_release/src/caffe/layers/cudnn_softmax_layer.o] Error 1

Hi,

Did you try it on JetPack 4.6?
If not, please upgrade your device first.

The installation is verified on the JetPack 4.6.
Thanks.

.build_release/lib/libcaffe.so: undefined reference to `boost::filesystem::path::replace_extension(boost::filesystem::path const&)’

Hi,

Please check if you have installed all the required libraries listed in the 1. Dependencies step.

Then please also verify if the full patch is applied.
It will change the PYTHON_LIBRARIES from boost_python into boost_python3.

Thanks.

nvidia@nvidia-desktop:~/caffe$ sudo vi Makefile
nvidia@nvidia-desktop:~/caffe$ make
CXX/LD -o .build_release/tools/compute_image_mean.bin
.build_release/lib/libcaffe.so: undefined reference to boost::thread::start_thread_noexcept()' .build_release/lib/libcaffe.so: undefined reference to boost::filesystem::path::stem_v3() const’
.build_release/lib/libcaffe.so: undefined reference to cv::imdecode(cv::_InputArray const&, int)' .build_release/lib/libcaffe.so: undefined reference to cv::imencode(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator >&, std::vector<int, std::allocator > const&)’
.build_release/lib/libcaffe.so: undefined reference to boost::thread::join_noexcept()' .build_release/lib/libcaffe.so: undefined reference to boost::detail::set_tss_data(void const*, void ()(void ()(void*), void*), void ()(void), void*, bool)’
.build_release/lib/libcaffe.so: undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)’
collect2: error: ld returned 1 exit status
Makefile:635: recipe for target ‘.build_release/tools/compute_image_mean.bin’ failed
make: *** [.build_release/tools/compute_image_mean.bin] Error 1

src/caffe/util/io.cpp:17:10: fatal error: turbojpeg.h: No such file or directory
#include <turbojpeg.h>
^~~~~~~~~~~~~
compilation terminated.
Makefile:624: recipe for target ‘.build_release/src/caffe/util/io.o’ failed
make: *** [.build_release/src/caffe/util/io.o] Error 1
I downloaded NVIDIA’s Cafe from the Internet, but this problem occurred again

libboost1.65-dev:arm64: /usr/include/boost/version.hpp
Is this version too high

Hi,

Below is an automatic script for your reference.
Please set your device with JetPack 4.6 and put the following file in the same folder.

install_caffe_jp46.sh (1.4 KB)
0001-patch-for-jp4.6.patch (13.8 KB)

$ ./install_caffe_jp46.sh
$ source ~/.bashrc
$ python3
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import caffe
>>>

Thanks.