Found cuDNN: /usr/lib/x86_64-linux-gnu/libcudnn.so
-- Building a CUDA test project to see if your compiler is compatible with CUDA...
-- Checking if you have the right version of cuDNN installed.
-- Found cuDNN, but it looks like the wrong version so dlib will not use it.
-- Dlib requires cuDNN V5.0 OR GREATER. Since cuDNN is not found DLIB WILL NOT USE CUDA.
-- If you have cuDNN then set CMAKE_PREFIX_PATH to include cuDNN's folder.
-- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA
how to fix this
I have CUDA 11.6 with CUDNN 8.
It is working fine on sample programs.