当前位置:网站首页>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:28:00 【u013250861】
运行百度飞桨的代码,报以下错误,并给出提示,是由于cuda没有配置好导致的报错。
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;
但是电脑是安装过paddle,并运行成功过gpu代码的,所以应该配置好了cuda和cudnn。
解决步骤(linux环境下:设置 “LD_LIBRARY_PATH” 动态链接库):
- 查找Linux普通用户在自己的Anaconda虚拟环境目录中的cudnn
(paddle) [email protected]:~/anaconda3/envs/paddle/lib$ pwd /home/ninjia/anaconda3/envs/paddle/lib
- 在 /home/ninjia目录下的配置文件
.bashrc
或者.bash_profile
中加入 export 语句,前者在每次登陆和每次打开 shell 都读取一次,后者只在登陆时读取一次。我的习惯是加到 ~/.bashrc 中,在该文件的未尾,可采用如下语句来使设置“动态链接库” LD_LIBRARY_PATH
生效:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ninjia/anaconda3/envs/paddle/lib
- 修改完后,
source .bashrc
生效(base) [email protected]:~$ source .bashrc
LD_LIBRARY_PATH详解
LD_LIBRARY_PATH详解
LD_LIBRARY_PATH是Linux环境变量名,该环境变量主要用于指定查找共享库(动态链接库)时除了默认路径之外的其他路径。
参考资料:
PreconditionNotMetError: The third-party dynamic library (libcublas.so) that Paddle depends on is no
linux 的 LD_LIBRARY_PATH 变量设置
设置 Linux 的 LD_LIBRARY_PATH 变量
The third-party dynamic library (libcudnn.so) that Paddle depends on is not configured correctly
LD_LIBRARY_PATH详解
边栏推荐
- IBM大面积辞退40岁+的员工,掌握这十个搜索技巧让你的工作效率至上提高十倍
- Talking about fake demand from takeout order
- HAC cluster modifying administrator user password
- Cf:b. almost Terry matrix [symmetry + finding rules + structure + I am structural garbage]
- 集合
- 开源 SPL 消灭数以万计的数据库中间表
- 力扣 729. 我的日程安排表 I
- Oracle故障处理:Ora-10873:file * needs to be either taken out of backup or media recovered
- Shell编程基础(第8篇:分支语句-case in)
- Go语言 | 02 for循环及常用函数的使用
猜你喜欢
众昂矿业:2022年全球萤石行业市场供给现状分析
Reflection and imagination on the notation like tool
Technology sharing | common interface protocol analysis
Go语言 | 01 WSL+VSCode环境搭建避坑指南
四万字长文说operator new & operator delete
全网最全的低代码/无代码平台盘点:简道云、伙伴云、明道云、轻流、速融云、集简云、Treelab、钉钉·宜搭、腾讯云·微搭、智能云·爱速搭、百数云
How to choose the notion productivity tools? Comparison and evaluation of notion, flowus and WOLAI
Common - Hero Minesweeper
Mysql如何对json数据进行查询及修改
JAD的安装、配置及集成IDEA
随机推荐
The relationship between temperature measurement and imaging accuracy of ifd-x micro infrared imager (module)
毫米波雷达人体感应器,智能感知静止存在,人体存在检测应用
Hiengine: comparable to the local cloud native memory database engine
Vagrant2.2.6 supports virtualbox6.1
Summer Challenge database Xueba notes, quick review of exams / interviews~
C#应用程序界面开发基础——窗体控制(6)——菜单栏、工具栏和状态栏控件
Fuzor 2020软件安装包下载及安装教程
How to realize the Online timer and offline timer in the game
四万字长文说operator new & operator delete
通过POI追加数据到excel中小案例
HiEngine:可媲美本地的云原生内存数据库引擎
Django uses mysqlclient service to connect and write to the database
Common - Hero Minesweeper
强化学习-学习笔记4 | Actor-Critic
数学分析_笔记_第9章:曲线积分与曲面积分
Fuzor 2020軟件安裝包下載及安裝教程
从零实现深度学习框架——LSTM从理论到实战【实战】
What are general items
okcc呼叫中心有什么作用
XaaS 陷阱:万物皆服务(可能)并不是IT真正需要的东西