错误:mnistCUDNN.cpp:541:53:错误:“cudnnGetConvolutionForwardAlgorithm”没有参数

问题描述

我已经成功安装了 cuda-10.2 和 cudnn 7.6.5 .33,但是当我尝试通过编译 mnistCUDNN 示例来验证我的 cuDNN 安装时,出现错误

操作系统:红帽企业 Linux 工作站 7.9 版 (Maipo)
驱动程序版本: 440.33.01
CUDA 版本: 10.2
GPU: Quadro RTX 5000

按照此文档进行安装:https://docs.nvidia.com/deeplearning/cudnn/archives/cudnn_765/cudnn-install/index.html

当我尝试运行 make clean && make

时出现以下错误
[root@mettl001 mnistCUDNN]# make clean && make
rm -rf *o
rm -rf mnistCUDNN
Linking agains cublasLt = true
CUDA VERSION: 10020
TARGET ARCH: x86_64
HOST_ARCH: x86_64
TARGET OS: linux
SMS: 30 35 50 53 60 61 62 70 72 75
/usr/local/cuda/bin/nvcc -ccbin g++ -I/usr/local/cuda/include -I/usr/local/cuda/include -IFreeImage/include  -m64    -gencode arch=compute_30,code=sm_30 -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_75,code=compute_75 -o fp16_dev.o -c fp16_dev.cu
g++ -I/usr/local/cuda/include -I/usr/local/cuda/include -IFreeImage/include   -o fp16_emu.o -c fp16_emu.cpp
g++ -I/usr/local/cuda/include -I/usr/local/cuda/include -IFreeImage/include   -o mnistCUDNN.o -c mnistCUDNN.cpp
In file included from gemv.h:17:0,from mnistCUDNN.cpp:35:
mnistCUDNN.cpp: In member function ‘void network_t<value_type>::convoluteForward(const Layer_t<value_type>&,int&,value_type*,value_type**)’:
mnistCUDNN.cpp:538:53: error: ‘CUDNN_CONVOLUTION_FWD_PREFER_FASTEST’ was not declared in this scope
                                                     CUDNN_CONVOLUTION_FWD_PREFER_FASTEST,^
error_util.h:66:9: note: in deFinition of macro ‘checkCUDNN’
     if (status != CUDNN_STATUS_SUCCESS) {                              \
         ^
mnistCUDNN.cpp:541:53: error: there are no arguments to ‘cudnnGetConvolutionForwardAlgorithm’ that depend on a template parameter,so a declaration of ‘cudnnGetConvolutionForwardAlgorithm’ must be available [-fpermissive]
                                                     ) );

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)