Setting custom CuDNN path

Hi
I have extracted CuDNN files to a custom folder because of non-root access. As I saw this message in the config output:

-- Could NOT find CUDNN (missing: CUDNN_LIBRARY_PATH CUDNN_INCLUDE_PATH)

I set the variables accordingly in .bashrc and sourced it

$ echo $CUDNN_LIBRARY_PATH
/home/mahmood/cudnn/lib64
$ ls /home/mahmood/cudnn/lib64
libcudnn_adv_infer.so        libcudnn_cnn_infer.so        libcudnn_ops_infer.so        libcudnn.so
libcudnn_adv_infer.so.8      libcudnn_cnn_infer.so.8      libcudnn_ops_infer.so.8      libcudnn.so.8
libcudnn_adv_infer.so.8.1.0  libcudnn_cnn_infer.so.8.1.0  libcudnn_ops_infer.so.8.1.0  libcudnn.so.8.1.0
libcudnn_adv_train.so        libcudnn_cnn_train.so        libcudnn_ops_train.so        libcudnn_static.a
libcudnn_adv_train.so.8      libcudnn_cnn_train.so.8      libcudnn_ops_train.so.8      libcudnn_static_v8.a
libcudnn_adv_train.so.8.1.0  libcudnn_cnn_train.so.8.1.0  libcudnn_ops_train.so.8.1.0
$ echo $CUDNN_INCLUDE_PATH
/home/mahmood/cudnn/include
$ ls /home/mahmood/cudnn/include
cudnn_adv_infer.h     cudnn_backend.h       cudnn_cnn_train.h     cudnn_ops_infer_v8.h  cudnn_version.h
cudnn_adv_infer_v8.h  cudnn_backend_v8.h    cudnn_cnn_train_v8.h  cudnn_ops_train.h     cudnn_version_v8.h
cudnn_adv_train.h     cudnn_cnn_infer.h     cudnn.h               cudnn_ops_train_v8.h
cudnn_adv_train_v8.h  cudnn_cnn_infer_v8.h  cudnn_ops_infer.h     cudnn_v8.h

Still I see the message that CuDNN has not been found. Should I do something more?

OK. The solution is to set CUDNN_ROOT.

1 Like