Dlib and opencv cannot use CUDA

My graphics card is 2080s maxq. I have installed CUDA toolkit and CUDNN but Cmake cannot find CUDNN while Configuring opencv.
Also, dlib cannot find CUDA.
I installed CUDA v11.1, CUDNN v8.2.1 and the bandwidth test is passed.
Help me please.

Hi @wang.yifan ,
Can you please refer to the below link and let us know if this helps?
https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html

Thanks!