当前位置:网站首页>third-party dynamic library (libcudnn.so) that Paddle depends on is not configured correctl
third-party dynamic library (libcudnn.so) that Paddle depends on is not configured correctl
2022-07-05 19:37:00 【u013250861】
Run the code of Baidu PaddlePaddle , Report the following error , And give tips , Is due to cuda Errors caused by not configuring well .
W0705 10:39:02.694573 2471961 gpu_context.cc:278] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 11.4, Runtime API Version: 11.2
W0705 10:39:02.694808 2471961 dynamic_loader.cc:305] The third-party dynamic library (libcudnn.so) that Paddle depends on is not configured correctly. (error code is /usr/local/cuda/lib64/libcudnn.so: cannot open shared object file: No such file or directory)
Suggestions:
1. Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed.
2. Configure third-party dynamic library environment variables as follows:
- Linux: set LD_LIBRARY_PATH by `export LD_LIBRARY_PATH=...`
- Windows: set PATH by `set PATH=XXX;
But the computer is installed paddle, And run successfully gpu Code , So it should be configured cuda and cudnn.
Solution steps (linux In the environment : Set up “LD_LIBRARY_PATH” Dynamic link library ):
- lookup Linux Ordinary users in their own Anaconda In the virtual environment directory cudnn
(paddle) [email protected]:~/anaconda3/envs/paddle/lib$ pwd /home/ninjia/anaconda3/envs/paddle/lib
- stay /home/ninjia The configuration file under the directory
.bashrc
perhaps.bash_profile
Add export sentence , The former in every login and every open shell Read once , The latter is read only once when logging in . My habit is to add ~/.bashrc in , At the end of the file , The following statement can be used to set“ Dynamic link library ” LD_LIBRARY_PATH
take effect :export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ninjia/anaconda3/envs/paddle/lib
- After modification ,
source .bashrc
take effect(base) [email protected]:~$ source .bashrc
LD_LIBRARY_PATH Detailed explanation
LD_LIBRARY_PATH Detailed explanation
LD_LIBRARY_PATH yes Linux Environment variable name , This environment variable is mainly used to specify the search of shared libraries ( Dynamic link library ) In addition to the default path .
Reference material :
PreconditionNotMetError: The third-party dynamic library (libcublas.so) that Paddle depends on is no
linux Of LD_LIBRARY_PATH Variable is set
Set up Linux Of LD_LIBRARY_PATH Variable
The third-party dynamic library (libcudnn.so) that Paddle depends on is not configured correctly
LD_LIBRARY_PATH Detailed explanation
边栏推荐
- 再忙不能忘安全
- Force buckle 1200 Minimum absolute difference
- ELK分布式日志分析系统部署(华为云)
- 力扣 729. 我的日程安排表 I
- Is it safe for China Galaxy Securities to open an account? Securities account opening
- HAC cluster modifying administrator user password
- 测试的核心价值到底是什么?
- How to choose the notion productivity tools? Comparison and evaluation of notion, flowus and WOLAI
- 通过POI追加数据到excel中小案例
- 5 years of experience, 27 days of Android programmer interview, 2022 programmer advanced classic
猜你喜欢
集合
webuploader文件上传 拖拽上传 进度监听 类型控制 上传结果监听控件
Webuploader file upload drag upload progress monitoring type control upload result monitoring control
Go语言 | 02 for循环及常用函数的使用
The problem of returning the longtext field in MySQL and its solution
Fuzor 2020軟件安裝包下載及安裝教程
四万字长文说operator new & operator delete
PHP uses ueditor to upload pictures and add watermarks
How to choose the notion productivity tools? Comparison and evaluation of notion, flowus and WOLAI
力扣 729. 我的日程安排表 I
随机推荐
Xaas trap: all things serve (possible) is not what it really needs
Django使用mysqlclient服务连接并写入数据库的操作过程
关于 Notion-Like 工具的反思和畅想
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
【obs】QString的UTF-8中文转换到blog打印 UTF-8 char*
Hiengine: comparable to the local cloud native memory database engine
How about testing outsourcing companies?
Oracle fault handling: ora-10873:file * needs to be either taken out of backup or media recovered
[AI framework basic technology] automatic derivation mechanism (autograd)
测试外包公司怎么样?
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
The relationship between temperature measurement and imaging accuracy of ifd-x micro infrared imager (module)
MySQL中字段类型为longtext的值导出后显示二进制串方式
通过POI追加数据到excel中小案例
S7-200SMART利用V90 MODBUS通信控制库控制V90伺服的具体方法和步骤
HiEngine:可媲美本地的云原生内存数据库引擎
微波雷达感应模块技术,实时智能检测人体存在,静止微小动静感知
100million single men and women supported an IPO with a valuation of 13billion
XaaS 陷阱:万物皆服务(可能)并不是IT真正需要的东西
不愧是大佬,字节大牛耗时八个月又一力作