已安装,但是未发现libcudnn---Can not find library: libcudnn.so
Created by: nihuizhidao
CentOS 7.6 paddlepaddle-gpu==1.8.2.post107 CUDA: 10.0 cudnn: 7.6.2 以下:
export PATH=/usr/local/cuda-10.0/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH
已经添加到~/.bashrc,并且有:
(base) [scc@localhost ~]$ find /usr/local/cuda-10.0/lib64/libcudnn* /usr/local/cuda-10.0/lib64/libcudnn.so /usr/local/cuda-10.0/lib64/libcudnn.so.7 /usr/local/cuda-10.0/lib64/libcudnn.so.7.6.2 /usr/local/cuda-10.0/lib64/libcudnn_static.a
在运行infer的时候出现如下错误(代码没有问题,在其他环境下测试过):
W0827 00:56:50.655732 257049 device_context.cc:252] Please NOTE: device: 0, CUDA Capability: 75, Driver API Version: 11.0, Runtime API Version: 10.0 W0827 00:56:50.655920 257049 dynamic_loader.cc:120] Can not find library: libcudnn.so. The process maybe hang. Please try to add the lib path to LD_LIBRARY_PATH. W0827 00:56:50.655953 257049 dynamic_loader.cc:179] Failed to find dynamic library: libcudnn.so ( libcudnn.so: cannot open shared object file: No such file or directory ) Please specify its path correctly using following ways: Method. set environment variable LD_LIBRARY_PATH on Linux or DYLD_LIBRARY_PATH on Mac OS. For instance, issue command: export LD_LIBRARY_PATH=... Note: After Mac OS 10.11, using the DYLD_LIBRARY_PATH is impossible unless System Integrity Protection (SIP) is disabled.
请问这个怎么解决? 着急。。。。