here is what is in my /usr/local/cuda/targets/x86_64-linux/lib/
cmake libcufftw_static.a libcusolver_static.a libnppif.so.11.8.0.86 libnpps_static.a
libaccinj64.so libcufile_rdma.so libcusparse.so libnppif_static.a libnvblas.so
libaccinj64.so.11.8 libcufile_rdma.so.1 libcusparse.so.11 libnppig.so libnvblas.so.11
libaccinj64.so.11.8.87 libcufile_rdma.so.1.4.0 libcusparse.so.11.7.5.86 libnppig.so.11 libnvblas.so.11.11.3.6
libcublasLt.so libcufile_rdma_static.a libcusparse_static.a libnppig.so.11.8.0.86 libnvjpeg.so
libcublasLt.so.11 libcufile.so liblapack_static.a libnppig_static.a libnvjpeg.so.11
libcublasLt.so.11.11.3.6 libcufile.so.0 libmetis_static.a libnppim.so libnvjpeg.so.11.9.0.86
libcublasLt_static.a libcufile.so.1.4.0 libnppc.so libnppim.so.11 libnvjpeg_static.a
libcublas.so libcufile_static.a libnppc.so.11 libnppim.so.11.8.0.86 libnvptxcompiler_static.a
libcublas.so.11 libcufilt.a libnppc.so.11.8.0.86 libnppim_static.a libnvrtc-builtins.so
libcublas.so.11.11.3.6 libcuinj64.so libnppc_static.a libnppist.so libnvrtc-builtins.so.11.8
libcublas_static.a libcuinj64.so.11.8 libnppial.so libnppist.so.11 libnvrtc-builtins.so.11.8.89
libcudadevrt.a libcuinj64.so.11.8.87 libnppial.so.11 libnppist.so.11.8.0.86 libnvrtc-builtins_static.a
libcudart.so libculibos.a libnppial.so.11.8.0.86 libnppist_static.a libnvrtc.so
libcudart.so.11.0 libcurand.so libnppial_static.a libnppisu.so libnvrtc.so.11.2
libcudart.so.11.8.89 libcurand.so.10 libnppicc.so libnppisu.so.11 libnvrtc.so.11.8.89
libcudart_static.a libcurand.so.10.3.0.86 libnppicc.so.11 libnppisu.so.11.8.0.86 libnvrtc_static.a
libcufft.so libcurand_static.a libnppicc.so.11.8.0.86 libnppisu_static.a libnvToolsExt.so
libcufft.so.10 libcusolver_lapack_static.a libnppicc_static.a libnppitc.so libnvToolsExt.so.1
libcufft.so.10.9.0.58 libcusolverMg.so libnppidei.so libnppitc.so.11 libnvToolsExt.so.1.0.0
libcufft_static.a libcusolverMg.so.11 libnppidei.so.11 libnppitc.so.11.8.0.86 libOpenCL.so
libcufft_static_nocallback.a libcusolverMg.so.11.4.1.48 libnppidei.so.11.8.0.86 libnppitc_static.a libOpenCL.so.1
libcufftw.so libcusolver.so libnppidei_static.a libnpps.so libOpenCL.so.1.0
libcufftw.so.10 libcusolver.so.11 libnppif.so libnpps.so.11 libOpenCL.so.1.0.0
libcufftw.so.10.9.0.58 libcusolver.so.11.4.1.48 libnppif.so.11 libnpps.so.11.8.0.86 stubs
note there are no libcudnn files located there. They are supposed to install to this directory: /usr/lib/x86_64-linux-gnu/
if I change to the /usr/lib/x86_64-linux-gnu/ directory here is what I find:
cd /usr/lib/x86_64-linux-gnu/
dir libcudnn*
libcudnn_adv_infer.so libcudnn_adv_train_static_v8.a libcudnn_cnn_train_static.a libcudnn_ops_train.so.8.8.0
libcudnn_adv_infer.so.8 libcudnn_cnn_infer.so libcudnn_cnn_train_static_v8.a libcudnn_ops_train_static.a
libcudnn_adv_infer.so.8.8.0 libcudnn_cnn_infer.so.8 libcudnn_ops_infer.so libcudnn_ops_train_static_v8.a
libcudnn_adv_infer_static.a libcudnn_cnn_infer.so.8.8.0 libcudnn_ops_infer.so.8 libcudnn.so
libcudnn_adv_infer_static_v8.a libcudnn_cnn_infer_static.a libcudnn_ops_infer.so.8.8.0 libcudnn.so.8
libcudnn_adv_train.so libcudnn_cnn_infer_static_v8.a libcudnn_ops_infer_static.a libcudnn.so.8.8.0
libcudnn_adv_train.so.8 libcudnn_cnn_train.so libcudnn_ops_infer_static_v8.a
libcudnn_adv_train.so.8.8.0 libcudnn_cnn_train.so.8 libcudnn_ops_train.so
libcudnn_adv_train_static.a libcudnn_cnn_train.so.8.8.0 libcudnn_ops_train.so.8
it looks like you may have installed the libcudnn files to the wrong directory. if you find these files in both directories, delete the libcudnn files from the /usr/local/cuda/targets/x86_64-linux/lib/ directory
cmake libcufftw_static.a libcusolver_static.a libnppif.so.11.8.0.86 libnpps_static.a
libaccinj64.so libcufile_rdma.so libcusparse.so libnppif_static.a libnvblas.so
libaccinj64.so.11.8 libcufile_rdma.so.1 libcusparse.so.11 libnppig.so libnvblas.so.11
libaccinj64.so.11.8.87 libcufile_rdma.so.1.4.0 libcusparse.so.11.7.5.86 libnppig.so.11 libnvblas.so.11.11.3.6
libcublasLt.so libcufile_rdma_static.a libcusparse_static.a libnppig.so.11.8.0.86 libnvjpeg.so
libcublasLt.so.11 libcufile.so liblapack_static.a libnppig_static.a libnvjpeg.so.11
libcublasLt.so.11.11.3.6 libcufile.so.0 libmetis_static.a libnppim.so libnvjpeg.so.11.9.0.86
libcublasLt_static.a libcufile.so.1.4.0 libnppc.so libnppim.so.11 libnvjpeg_static.a
libcublas.so libcufile_static.a libnppc.so.11 libnppim.so.11.8.0.86 libnvptxcompiler_static.a
libcublas.so.11 libcufilt.a libnppc.so.11.8.0.86 libnppim_static.a libnvrtc-builtins.so
libcublas.so.11.11.3.6 libcuinj64.so libnppc_static.a libnppist.so libnvrtc-builtins.so.11.8
libcublas_static.a libcuinj64.so.11.8 libnppial.so libnppist.so.11 libnvrtc-builtins.so.11.8.89
libcudadevrt.a libcuinj64.so.11.8.87 libnppial.so.11 libnppist.so.11.8.0.86 libnvrtc-builtins_static.a
libcudart.so libculibos.a libnppial.so.11.8.0.86 libnppist_static.a libnvrtc.so
libcudart.so.11.0 libcurand.so libnppial_static.a libnppisu.so libnvrtc.so.11.2
libcudart.so.11.8.89 libcurand.so.10 libnppicc.so libnppisu.so.11 libnvrtc.so.11.8.89
libcudart_static.a libcurand.so.10.3.0.86 libnppicc.so.11 libnppisu.so.11.8.0.86 libnvrtc_static.a
libcufft.so libcurand_static.a libnppicc.so.11.8.0.86 libnppisu_static.a libnvToolsExt.so
libcufft.so.10 libcusolver_lapack_static.a libnppicc_static.a libnppitc.so libnvToolsExt.so.1
libcufft.so.10.9.0.58 libcusolverMg.so libnppidei.so libnppitc.so.11 libnvToolsExt.so.1.0.0
libcufft_static.a libcusolverMg.so.11 libnppidei.so.11 libnppitc.so.11.8.0.86 libOpenCL.so
libcufft_static_nocallback.a libcusolverMg.so.11.4.1.48 libnppidei.so.11.8.0.86 libnppitc_static.a libOpenCL.so.1
libcufftw.so libcusolver.so libnppidei_static.a libnpps.so libOpenCL.so.1.0
libcufftw.so.10 libcusolver.so.11 libnppif.so libnpps.so.11 libOpenCL.so.1.0.0
libcufftw.so.10.9.0.58 libcusolver.so.11.4.1.48 libnppif.so.11 libnpps.so.11.8.0.86 stubs
note there are no libcudnn files located there. They are supposed to install to this directory: /usr/lib/x86_64-linux-gnu/
if I change to the /usr/lib/x86_64-linux-gnu/ directory here is what I find:
cd /usr/lib/x86_64-linux-gnu/
dir libcudnn*
libcudnn_adv_infer.so libcudnn_adv_train_static_v8.a libcudnn_cnn_train_static.a libcudnn_ops_train.so.8.8.0
libcudnn_adv_infer.so.8 libcudnn_cnn_infer.so libcudnn_cnn_train_static_v8.a libcudnn_ops_train_static.a
libcudnn_adv_infer.so.8.8.0 libcudnn_cnn_infer.so.8 libcudnn_ops_infer.so libcudnn_ops_train_static_v8.a
libcudnn_adv_infer_static.a libcudnn_cnn_infer.so.8.8.0 libcudnn_ops_infer.so.8 libcudnn.so
libcudnn_adv_infer_static_v8.a libcudnn_cnn_infer_static.a libcudnn_ops_infer.so.8.8.0 libcudnn.so.8
libcudnn_adv_train.so libcudnn_cnn_infer_static_v8.a libcudnn_ops_infer_static.a libcudnn.so.8.8.0
libcudnn_adv_train.so.8 libcudnn_cnn_train.so libcudnn_ops_infer_static_v8.a
libcudnn_adv_train.so.8.8.0 libcudnn_cnn_train.so.8 libcudnn_ops_train.so
libcudnn_adv_train_static.a libcudnn_cnn_train.so.8.8.0 libcudnn_ops_train.so.8
it looks like you may have installed the libcudnn files to the wrong directory. if you find these files in both directories, delete the libcudnn files from the /usr/local/cuda/targets/x86_64-linux/lib/ directory