当前位置:网站首页>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详解
边栏推荐
- Interviewer: what is the difference between redis expiration deletion strategy and memory obsolescence strategy?
- Fuzor 2020 software installation package download and installation tutorial
- Postman core function analysis - parameterization and test report
- Fundamentals of shell programming (Chapter 9: loop)
- 使用easyexcel模板导出的两个坑(Map空数据列错乱和不支持嵌套对象)
- 力扣 729. 我的日程安排表 I
- Debezium系列之:记录mariadb数据库删除多张临时表debezium解析到的消息以及解决方法
- MMO项目学习一:预热
- okcc呼叫中心有什么作用
- 太牛了,看这篇足矣了
猜你喜欢

数学分析_笔记_第9章:曲线积分与曲面积分

测试的核心价值到底是什么?

After the company went bankrupt, the blackstones came

Go deep into the underlying C source code and explain the core design principles of redis

众昂矿业:2022年全球萤石行业市场供给现状分析
安卓面试宝典,2022Android面试笔试总结

Fuzor 2020軟件安裝包下載及安裝教程
MySql中的longtext字段的返回问题及解决

Decision tree and random forest

Fuzor 2020软件安装包下载及安装教程
随机推荐
After the company went bankrupt, the blackstones came
完爆面试官,一线互联网企业高级Android工程师面试题大全
Oracle故障处理:Ora-10873:file * needs to be either taken out of backup or media recovered
What is the core value of testing?
Go语言 | 02 for循环及常用函数的使用
Blue sky drawing bed Apple quick instructions
Common interview questions in Android, 2022 golden nine silver ten Android factory interview questions hit
Go语言学习教程(十六)
Vagrant2.2.6 supports virtualbox6.1
ELK分布式日志分析系统部署(华为云)
Android interview, Android audio and video development
不愧是大佬,字节大牛耗时八个月又一力作
What do software test engineers do? How about the prospect of treatment?
司空见惯 - 英雄扫雷鼠
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
Postman core function analysis - parameterization and test report
MySQL中字段类型为longtext的值导出后显示二进制串方式
What does software testing do? What are the requirements for learning?
Debezium系列之:IDEA集成词法和语法分析ANTLR,查看debezium支持的ddl、dml等语句
【obs】QString的UTF-8中文转换到blog打印 UTF-8 char*