如何解决错误: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 举报,一经查实,本站将立刻删除。