-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make all with USE_CUDNN := 1 cannot find cudnn.h #1325
Comments
First download cuDNN from NVIDIA: https://developer.nvidia.com/cudnn and then put the header and library files in the corresponding path on your machine. |
I already did that and the error was the same. So it should work. Any suggestion? |
You need to manually put cudnn.hpp in your cuda/include folder. |
I thought so, but it's cudnn.h, cudnn.hpp is already there |
In Ubuntu14.04, you can place |
Yes, but where can I find cudnn.h? I've already dowloaded the installer from https://developer.nvidia.com/cudnn and installed the toolkit. That file is missing. |
You don't need to download the installer from the https://developer.nvidia.com/cudnn If you can't get that library, maybe I can email that to you. |
Ah thank you very much. I was so tired I didn't see the button. Now I'll try to include the cudnn.h file. |
By the way you confirm that I can run caffe with CUDA without problem even if I installed the libraries by
|
On my server, aptitude reports:
which seems to suggest that this is cuda 5.5. Latest cuda AFAIK is 6.5. CuDNN works against 6.5 AFAIK. From there you know what you should do :) |
Hey I thought I closed this lots of days ago. Btw thank you Beniz and dreammingo. :) It works |
@dreamingo I have downloaded cudnn6.5 library, and place cudnn.h into /usr/include, and I tried to make all , the error of 'cannot find cudnn.h' is gone.
I don't know why there are so many errors, and I wonder is it because I have't set the permission on the cudnn.h in the path of /usr/include |
Hi, xsz. I have no idea about what's going wrong with you compilation.Can In the last comment an user said that: Maybe you may have to check the version of cudnn. On Sat, Dec 20, 2014 at 7:47 PM, xsz notifications@github.com wrote:
|
In my case, |
Hello, I met the same issue in the beginning. I have fixed it now by doing these. |
I had the same problem, I thought installing cuda tool-kit would install everything,! apparently I was wrong!. |
Good Morning, The file 'cudnn.h' is located in the foler where you have installed your 'cudnn', for exemple : cp lib64/* /usr/local/cuda/lib64/ so you have to edit the Makefile.config which is in the caffe root folder, cordially. |
I would suggest not to copy the cudnn library files into /usr/local/cuda directory. This may create issues with newer versions of the library. and edit your .bashrc file adding the following line: <your_cudnn_location> is the place here you untar the library files obtained from https://developer.nvidia.com/cudnn |
After downloading CuDNN library folder in tgz format you get cudnn.h in /cuda/include folder, then I did so: |
Is it possible to link caffe to a local cudnn installation instead of copying the include and lib64 files? I tried to change cuda.cmakelists , but its not successful |
In Makefile I changed
And when I included the
Please tell me how can I solve this error. |
Under windows, you need to take the three folders included in cudnn-7.5-windows7-x64-v5.0-ga.zip (or other CUDNN archive) and copy them into your CUDA folder (e.g. "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5"). If you extract the .zip directly there, then it will make "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\Cuda" and put the folders there. But they need to be directly in "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5"! |
Install |
Thank you. I could not get cudnn.h in the .deb installers. i had to use the Tar and extract. |
People commenting on an issue I opened 9 years ago 😢 Is Caffe still being used? Isn't everyone on PyTorch? |
Caffe is pretty much dead, but there are people still using it for some reason. Turbo c++ was used by some teachers, students like up until 2012, 2015!! Caffe ain't that old yet 😄 |
This might really be a stupid error but I cannot locate the 'cudnn.h' file.
The error is this :
./include/caffe/util/cudnn.hpp:5:19: fatal error: cudnn.h: No such file or directory
Someone can help me?
Thank you
The text was updated successfully, but these errors were encountered: