ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory
2. CUDA and CUDNN
strong@foreverstrong:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130
strong@foreverstrong:~$
strong@foreverstrong:~$ cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
#define CUDNN_MAJOR 6
#define CUDNN_MINOR 0
#define CUDNN_PATCHLEVEL 21
--
#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)
#include "driver_types.h"
strong@foreverstrong:~$
strong@foreverstrong:~$ cat /usr/local/cuda-8.0/include/cudnn.h | grep CUDNN_MAJOR -A 2
#define CUDNN_MAJOR 6
#define CUDNN_MINOR 0
#define CUDNN_PATCHLEVEL 21
--
#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)
#include "driver_types.h"
strong@foreverstrong:~$
strong@foreverstrong:~$ cat /usr/local/cuda-10.0/include/cudnn.h | grep CUDNN_MAJOR -A 2
#define CUDNN_MAJOR 7
#define CUDNN_MINOR 4
#define CUDNN_PATCHLEVEL 2
--
#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)
#include "driver_types.h"
strong@foreverstrong:~$
3. sudo ldconfig
strong@foreverstrong:~$ sudo ldconfig
[sudo] password for strong:
strong@foreverstrong:~$
strong@foreverstrong:~$ sudo ldconfig /usr/local/cuda-10.0/lib64
strong@foreverstrong:~$