-
Notifications
You must be signed in to change notification settings - Fork 362
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
"Caffe2: Cannot find cuDNN library" solved #277
Comments
This worked for me! Thank you! |
Another possible way is to set |
I cannot find which CMakeCache.txt file I have to change. |
@sidml Which file do I have to see? |
@heesungsung Note that you have to modify the paths according to your system. |
Mark stale issues due to inactivity. |
Ooooops! It did not work for me! -- Caffe2: CUDA detected: 11.3 But my cuDNN version is 8.4. Can anyone help me? Thanks!!!! |
I was receiving the following build error about
Caffe2: Cannot find cuDNN library
And fixed it by pointing CMake to the appropriate directories in
CMakeCache.txt
(for me it's inbuild/temp.linux-x86_64-3.6/CMakeCache.txt
). To do this look for the following lines in yourCMakeCache.txt
and change them to your cuda / cudnn paths, for example:I'm using Python 3.6, Anaconda, spconv@f22dd9 from Oct 27, 2020, pytorch 1.6, cuda 10.1, and Ubuntu 18.04.
Note that I also installed the same version of cuda (you can have multiple!) on my system per this guide so that I get
nvcc
which is missing in the Anaconda cuda installation. To see what version of cuda your anaconda pytorch is using runYou may also need to install cudnn with conda
Also, you can point CMake to the version of cuda and nvcc you want with the environment variable
CUDA_BIN_PATH
, i.e.:Now my build looks like this
If you want to do a clean build, run the following but note that it will delete your CMakeCache.txt changes and you'll need to redo them.
The text was updated successfully, but these errors were encountered: