Skip to content
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

Could NOT find CUDNN (missing: CUDNN_LIBRARY_PATH CUDNN_INCLUDE_PATH) #20

Open
nevergone123 opened this issue May 13, 2024 · 2 comments

Comments

@nevergone123
Copy link

Wonderful works!!!
I was trying Step 2.3: cmake . -B build
However,I encountered the following problem:

(chatsim) root@admin:~/AImodel/wenke/ChatSim/chatsim/background/mcnerf# cmake . -B build
-- Obtained CUDA architectures automatically from installed GPUs
-- Targeting CUDA architectures: 80
-- Module support is disabled.
-- Version: 9.1.1
-- Build type: Release
-- Caffe2: CUDA detected: 11.7
-- Caffe2: CUDA nvcc is: /usr/local/cuda-11.7/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda-11.7
-- Caffe2: Header version is: 11.7
-- Could NOT find CUDNN (missing: CUDNN_LIBRARY_PATH CUDNN_INCLUDE_PATH)
CMake Warning at External/libtorch/share/cmake/Caffe2/public/cuda.cmake:120 (message):
Caffe2: Cannot find cuDNN library. Turning the option off
Call Stack (most recent call first):
External/libtorch/share/cmake/Caffe2/Caffe2Config.cmake:92 (include)
External/libtorch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
CMakeLists.txt:39 (find_package)

-- /usr/local/cuda-11.7/lib64/libnvrtc.so shorthash is d833c4f3
-- Autodetected CUDA architecture(s): 8.0 8.0 8.0 8.0 8.0 8.0 8.0 8.0
-- Added CUDA NVCC flags for: -gencode;arch=compute_80,code=sm_80
CMake Error at External/libtorch/share/cmake/Caffe2/Caffe2Config.cmake:100 (message):
Your installed Caffe2 version uses cuDNN but I cannot find the cuDNN
libraries. Please set the proper cuDNN prefixes and / or install cuDNN.
Call Stack (most recent call first):
External/libtorch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
CMakeLists.txt:39 (find_package)

-- Configuring incomplete, errors occurred!
See also "/root/AImodel/wenke/ChatSim/chatsim/background/mcnerf/build/CMakeFiles/CMakeOutput.log".
See also "/root/AImodel/wenke/ChatSim/chatsim/background/mcnerf/build/CMakeFiles/CMakeError.log".

Do you have any idea? Many thanks!!

@yifanlu0227
Copy link
Owner

You should install CUDNN as the error message says.

option 1

Go to CUDNN download page to download and install it.

option 2

You can also download CUDNN via conda, but remember to set CUDNN_LIBRARY_PATH and CUDNN_INCLUDE_PATH to your conda environment like

export CUDNN_INCLUDE_PATH=$CONDA_PREFIX/include:$CUDNN_INCLUDE_PATH 
export CUDNN_LIBRARY_PATH=$CONDA_PREFIX/lib:$CUDNN_LIBRARY_PATH

@nevergone123
Copy link
Author

@yifanlu0227 , cool! Option 1 solved the problem. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants