darknet
darknet copied to clipboard
fatal error: cudnn_version.h: No such file or directory
(base) bly@s_1602:~/project/yolo_test/darknet$ make chmod +x *.sh g++ -std=c++11 -std=c++11 -Iinclude/ -I3rdparty/stb/include -DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/image_opencv.cpp -o obj/image_opencv.o In file included from include/darknet.h:46:0, from ./src/image.h:3, from ./src/image_opencv.h:4, from ./src/image_opencv.cpp:1: /usr/local/cuda/include/cudnn.h:60:10: fatal error: cudnn_version.h: No such file or directory #include "cudnn_version.h" ^~~~~~~~~~~~~~~~~ compilation terminated. Makefile:180: recipe for target 'obj/image_opencv.o' failed make: *** [obj/image_opencv.o] Error 1
You need to make sure, that you copied the "cudnn_version.h" file from the cudnn-zip-file to /usr/local/cuda/include
Old cmd :
sudo cp cuda/include/cudnn.h /usr/local/cuda/include
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
New cmd :
sudo cp cuda/include/cudnn*.h /usr/local/cuda/include
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
this is so stupid ... just a little "*"
Old cmd :
sudo cp cuda/include/cudnn.h /usr/local/cuda/include sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
New cmd :
sudo cp cuda/include/cudnn*.h /usr/local/cuda/include sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
this is so stupid ... just a little "*"
this was the solution for me. thanks
Hey where are you getting the cudnn_version.h from???
Hello,
I found it in the repo, just copy it.
From: Anh Nguyen @.> Sent: 16 March 2021 13:54 To: pjreddie/darknet @.> Cc: OussamaBATOUCHE @.>; Comment @.> Subject: Re: [pjreddie/darknet] fatal error: cudnn_version.h: No such file or directory (#2356)
Hey where are you getting the cudnn_version.h from???
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/pjreddie/darknet/issues/2356#issuecomment-800194339, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHASD3ZUPERNKYCJHOBJK63TD5BHZANCNFSM4UJC2QCQ.
hello,
chmod +x *.sh
g++ -std=c++11 -std=c++11 -Iinclude/ -I3rdparty/stb/include -DOPENCV pkg-config --cflags opencv4 2> /dev/null || pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -DCUDNN_HALF -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -DCUDNN_HALF -fPIC -c ./src/image_opencv.cpp -o obj/image_opencv.o
In file included from ./src/image.h:3,
from ./src/image_opencv.h:4,
from ./src/image_opencv.cpp:1:
include/darknet.h:46:10: fatal error: cudnn.h: No such file or directory
46 | #include <cudnn.h>
| ^~~~~~~~~
compilation terminated.
make: *** [Makefile:165: obj/image_opencv.o] Error 1
My Ubuntu version is 21.04, and the CUDA path is /usr/lib/cuda. I have copied all the cudnn file to cuda file, also export the path to bashrc. But it is still show the error message. fatal error: cudnn_version.h: No such file or directory
Old cmd :
sudo cp cuda/include/cudnn.h /usr/local/cuda/include sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
New cmd :
sudo cp cuda/include/cudnn*.h /usr/local/cuda/include sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
this is so stupid ... just a little "*"
It works on me bro...
fatal error: cudnn_version.h: No such file or directory
I have the same error and i dont find the cudnn_version header anywhere.
fatal error: cudnn_version.h: No such file or directory
I have the same error and i dont find the cudnn_version header anywhere.
Download cudnn files: from https://developer.nvidia.com/rdp/cudnn-download
Please check this link one of the best way from driver installation to CUDA and CuDNN installation. link> https://medium.com/geekculture/install-cuda-and-cudnn-on-windows-linux-52d1501a8805 Video> You can check this video with complete guidance > https://www.youtube.com/watch?v=4LvgOmxugFU