ImportError: libcud*.so.*: cannot open shared object file: No such file or directory

ImportError: libcud*.so.*: cannot open shared object file: No such file or directory
1. ImportError: libcud*.so.*: cannot open shared object file: No such file or directory
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:~$


作者:ForeverStrong

相关推荐

在这里插入图片描述

shopify的前端开发教程(一)

#案例 #0.通过pyquery定位如下html源码中的第二对儿ul中的li文本(使用CSS选择器实现,不要用下标索引)。

Redis自学第一天

Redis自学第一天

python 读取文件夹下的子文件 xlsx,csv