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

Veronica ·
更新时间:2024-11-14
· 906 次阅读

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



.so open file object directory

需要 登录 后方可回复, 如果你还没有账号请 注册新账号
相关文章
Flavia 2021-06-02
967