当前位置:网站首页>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详解
边栏推荐
- 建议收藏,我的腾讯Android面试经历分享
- How to apply smart contracts more wisely in 2022?
- Interviewer: what is the difference between redis expiration deletion strategy and memory obsolescence strategy?
- 国海证券在网上开户安全吗?
- Reflection and imagination on the notation like tool
- Advanced application of C # language
- Reinforcement learning - learning notes 4 | actor critical
- Decision tree and random forest
- How to choose the notion productivity tools? Comparison and evaluation of notion, flowus and WOLAI
- 面试官:Redis中集合数据类型的内部实现方式是什么?
猜你喜欢
Millimeter wave radar human body sensor, intelligent perception of static presence, human presence detection application
Notion 类生产力工具如何选择?Notion 、FlowUs 、Wolai 对比评测
四万字长文说operator new & operator delete
成功入职百度月薪35K,2022Android开发面试解答
What does software testing do? What are the requirements for learning?
Reflection and imagination on the notation like tool
【AI 框架基础技术】自动求导机制 (Autograd)
Inventory of the most complete low code / no code platforms in the whole network: Jiandao cloud, partner cloud, Mingdao cloud, Qingliu, xurong cloud, Jijian cloud, treelab, nailing · Yida, Tencent clo
出海十年:新旧接力,黑马崛起
JAD的安装、配置及集成IDEA
随机推荐
C# 语言的基本语法结构
中国银河证券开户安全吗 证券开户
【硬核干货】数据分析哪家强?选Pandas还是选SQL
The problem of returning the longtext field in MySQL and its solution
Apprentissage du projet MMO I: préchauffage
Common interview questions in Android, 2022 golden nine silver ten Android factory interview questions hit
The binary string mode is displayed after the value with the field type of longtext in MySQL is exported
Interviewer: what is the difference between redis expiration deletion strategy and memory obsolescence strategy?
Which securities company is better and which platform is safer for mobile account opening
Can Leica capture the high-end market offered by Huawei for Xiaomi 12s?
Go deep into the underlying C source code and explain the core design principles of redis
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
flume系列之:拦截器过滤数据
Reflection and imagination on the notation like tool
Ten years at sea: old and new relay, dark horse rising
华为让出的高端市场,小米12S靠徕卡能抢到吗?
HiEngine:可媲美本地的云原生内存数据库引擎
MMO项目学习一:预热
Advanced application of C # language
Go语言学习教程(十六)