Makefile:218: recipe for target 'mnistCUDNN.o' failed make: *** [mnistCUDNN.o] Error 1

(base) divya@DivyaBhardwaj:~/cudnn_samples_v8/mnistCUDNN$ gedit ~/.bashrc
(base) divya@DivyaBhardwaj:~/cudnn_samples_v8/mnistCUDNN$ make clean && make
rm -rf o
rm -rf mnistCUDNN
Linking agains cublasLt = true
CUDA VERSION: 11000
TARGET ARCH: x86_64
HOST_ARCH: x86_64
TARGET OS: linux
SMS: 35 50 53 60 61 62 70 72 75 80
/usr/local/cuda/bin/nvcc -ccbin g++ -I/usr/local/cuda/include -I/usr/local/cuda/targets/ppc64le-linux/include -IFreeImage/include -m64 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_80,code=compute_80 -o fp16_dev.o -c fp16_dev.cu
nvcc warning : The ‘compute_35’, ‘compute_37’, ‘compute_50’, ‘sm_35’, ‘sm_37’ and ‘sm_50’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
g++ -I/usr/local/cuda/include -I/usr/local/cuda/targets/ppc64le-linux/include -IFreeImage/include -o fp16_emu.o -c fp16_emu.cpp
g++ -I/usr/local/cuda/include -I/usr/local/cuda/targets/ppc64le-linux/include -IFreeImage/include -o mnistCUDNN.o -c mnistCUDNN.cpp
mnistCUDNN.cpp: In member function ‘void network_t<value_type>::convoluteForward(const Layer_t<value_type>&, int&, int&, int&, int&, value_type
, value_type**)’:
mnistCUDNN.cpp:565:38: error: ‘CUDNN_CONVOLUTION_FWD_ALGO_COUNT’ was not declared in this scope
int requestedAlgoCount = CUDNN_CONVOLUTION_FWD_ALGO_COUNT;
^
In file included from gemv.h:17:0,
from mnistCUDNN.cpp:35:
mnistCUDNN.cpp:578:63: error: ‘results’ was not declared in this scope
results));
^
error_util.h:64:9: note: in definition of macro ‘checkCUDNN’
if (status != CUDNN_STATUS_SUCCESS) {
^
mnistCUDNN.cpp:578:70: error: there are no arguments to ‘cudnnGetConvolutionForwardAlgorithm_v7’ that depend on a template parameter, so a declaration of ‘cudnnGetConvolutionForwardAlgorithm_v7’ must be available [-fpermissive]
results));
^
error_util.h:64:9: note: in definition of macro ‘checkCUDNN’
if (status != CUDNN_STATUS_SUCCESS) {
^
mnistCUDNN.cpp:578:70: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
results));
^
error_util.h:64:9: note: in definition of macro ‘checkCUDNN’
if (status != CUDNN_STATUS_SUCCESS) {
^
mnistCUDNN.cpp:578:70: error: there are no arguments to ‘cudnnGetConvolutionForwardAlgorithm_v7’ that depend on a template parameter, so a declaration of ‘cudnnGetConvolutionForwardAlgorithm_v7’ must be available [-fpermissive]
results));
^
error_util.h:65:56: note: in definition of macro ‘checkCUDNN’
_err << “cudnn failure (” << cudnnGetErrorString(status) << ‘)’;
^
mnistCUDNN.cpp:581:41: error: ‘results’ was not declared in this scope
cudnnGetErrorString(results[algoIndex].status),
^
In file included from gemv.h:17:0,
from mnistCUDNN.cpp:35:
mnistCUDNN.cpp:596:61: error: ‘results’ was not declared in this scope
results));
^
error_util.h:64:9: note: in definition of macro ‘checkCUDNN’
if (status != CUDNN_STATUS_SUCCESS) {
^
mnistCUDNN.cpp:599:41: error: ‘results’ was not declared in this scope
cudnnGetErrorString(results[algoIndex].status),
^
mnistCUDNN.cpp:604:20: error: ‘results’ was not declared in this scope
algo = results[0].algo;
^
In file included from gemv.h:17:0,
from mnistCUDNN.cpp:35:
mnistCUDNN.cpp: In instantiation of ‘void network_t<value_type>::convoluteForward(const Layer_t<value_type>&, int&, int&, int&, int&, value_type*, value_type**) [with value_type = float]’:
mnistCUDNN.cpp:778:25: required from ‘int network_t<value_type>::classify_example(const char*, const Layer_t<value_type>&, const Layer_t<value_type>&, const Layer_t<value_type>&, const Layer_t<value_type>&) [with value_type = float]’
mnistCUDNN.cpp:889:75: required from here
mnistCUDNN.cpp:571:63: error: ‘cudnnGetConvolutionForwardAlgorithm_v7’ was not declared in this scope
checkCUDNN( cudnnGetConvolutionForwardAlgorithm_v7(cudnnHandle,
^
error_util.h:64:9: note: in definition of macro ‘checkCUDNN’
if (status != CUDNN_STATUS_SUCCESS) {
^
mnistCUDNN.cpp:571:63: error: ‘cudnnGetConvolutionForwardAlgorithm_v7’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
checkCUDNN( cudnnGetConvolutionForwardAlgorithm_v7(cudnnHandle,
^
error_util.h:65:56: note: in definition of macro ‘checkCUDNN’
_err << “cudnn failure (” << cudnnGetErrorString(status) << ‘)’;
^
mnistCUDNN.cpp:571:63: note: ‘cudnnGetConvolutionForwardAlgorithm_v7’ declared here, later in the translation unit
checkCUDNN( cudnnGetConvolutionForwardAlgorithm_v7(cudnnHandle,
^
error_util.h:64:9: note: in definition of macro ‘checkCUDNN’
if (status != CUDNN_STATUS_SUCCESS) {
^
mnistCUDNN.cpp: In instantiation of ‘void network_t<value_type>::convoluteForward(const Layer_t<value_type>&, int&, int&, int&, int&, value_type*, value_type**) [with value_type = __half]’:
mnistCUDNN.cpp:778:25: required from ‘int network_t<value_type>::classify_example(const char*, const Layer_t<value_type>&, const Layer_t<value_type>&, const Layer_t<value_type>&, const Layer_t<value_type>&) [with value_type = __half]’
mnistCUDNN.cpp:960:83: required from here
mnistCUDNN.cpp:571:63: error: ‘cudnnGetConvolutionForwardAlgorithm_v7’ was not declared in this scope
checkCUDNN( cudnnGetConvolutionForwardAlgorithm_v7(cudnnHandle,
^
error_util.h:64:9: note: in definition of macro ‘checkCUDNN’
if (status != CUDNN_STATUS_SUCCESS) {
^
mnistCUDNN.cpp:571:63: error: ‘cudnnGetConvolutionForwardAlgorithm_v7’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
checkCUDNN( cudnnGetConvolutionForwardAlgorithm_v7(cudnnHandle,
^
error_util.h:65:56: note: in definition of macro ‘checkCUDNN’
_err << “cudnn failure (” << cudnnGetErrorString(status) << ‘)’;
^
mnistCUDNN.cpp:571:63: note: ‘cudnnGetConvolutionForwardAlgorithm_v7’ declared here, later in the translation unit
checkCUDNN( cudnnGetConvolutionForwardAlgorithm_v7(cudnnHandle,
^
error_util.h:64:9: note: in definition of macro ‘checkCUDNN’
if (status != CUDNN_STATUS_SUCCESS) {
^
Makefile:218: recipe for target ‘mnistCUDNN.o’ failed
make: *** [mnistCUDNN.o] Error 1
(base) divya@DivyaBhardwaj:~/cudnn_samples_v8/mnistCUDNN$

Hi @p20180013,
I could not reproduce the issue,
Request you to follow the below links
https://developer.nvidia.com/rdp/cudnn-download
https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#installlinux

Thanks!