haanjack/mnist-cudnn

What is these identifier? compile error says that's undefined.

KevinRyu opened this issue · 5 comments

Hi.

Thanks for your code first. I can run cudnn/cuda deep learning example code successfully with yours.
By the way, I have question. When I make convolution using Makefile, the following error is occurred.
What can I do? What is the meaning of these identifiers?

/usr/local/cuda/bin/nvcc -ccbin g++ -m64 -g -std=c++11 -G --resource-usage -Xcompiler -rdynamic -Xcompiler -fopenmp -rdc=true -lnvToolsExt -I/usr/local/cuda/samples/common/inc -I/usr/local/cuda/include -L/usr/local/cuda/lib64 -lcublas -lcudnn -lgomp -lcurand -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -o convolution convolution.cu
convolution.cu(82): error: identifier "CUDNN_CONVOLUTION_FWD_PREFER_FASTEST" is undefined
convolution.cu(82): error: identifier "cudnnGetConvolutionForwardAlgorithm" is undefined
convolution.cu(87): error: identifier "CUDNN_CONVOLUTION_BWD_FILTER_PREFER_FASTEST" is undefined
convolution.cu(87): error: identifier "cudnnGetConvolutionBackwardFilterAlgorithm" is undefined
convolution.cu(92): error: identifier "CUDNN_CONVOLUTION_BWD_DATA_PREFER_FASTEST" is undefined
convolution.cu(92): error: identifier "cudnnGetConvolutionBackwardDataAlgorithm" is undefined
6 errors detected in the compilation of "convolution.cu".

maybe you can ignore the ERROR, and just ./train it

Hi,

Thanks for your reply first. By the way, It can't be ignored to compile and
run. Some syntax was changed in new(latest) cudnn version. So, I must
modify code as the updated library tutorial.

2022년 1월 13일 (목) 오전 10:49, zhanglzu @.***>님이 작성:

maybe you can ignore the ERROR, and just ./train it


Reply to this email directly, view it on GitHub
#5 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG43MBNJBNDD7M7CTFURKPLUVYVTHANCNFSM5I65OBOQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID:
@.***>

Sorry,I ignored the information about you can run the example code successfully. I thought you were struggling with the error information. Good luck

Hi, Thanks for your reply first. By the way, It can't be ignored to compile and run. Some syntax was changed in new(latest) cudnn version. So, I must modify code as the updated library tutorial. 2022년 1월 13일 (목) 오전 10:49, zhanglzu @.***>님이 작성:

@KevinRyu
Yes, you need to modify the code to use ***_v7 for each related function calls. In src/layer.cu, it uses ***_v7 code. And, you may want to replace the algorithm options (like ***_PREFER_FASTEST) as 1.

Let me push updated version of convolution.cu in the near time.