当前位置:网站首页>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详解
边栏推荐
- 基于FPGA的超声波测距
- What are general items
- Cf:b. almost Terry matrix [symmetry + finding rules + structure + I am structural garbage]
- Microwave radar induction module technology, real-time intelligent detection of human existence, static micro motion and static perception
- 测试外包公司怎么样?
- C#应用程序界面开发基础——窗体控制(6)——菜单栏、工具栏和状态栏控件
- 5 years of experience, 27 days of Android programmer interview, 2022 programmer advanced classic
- Ultrasonic ranging based on FPGA
- Xaas trap: all things serve (possible) is not what it really needs
- 数据库 逻辑处理功能
猜你喜欢

C# 语言的基本语法结构
![[performance test] jmeter+grafana+influxdb deployment practice](/img/32/f07792734d040829398a90a2040146.png)
[performance test] jmeter+grafana+influxdb deployment practice

Do you know several assertion methods commonly used by JMeter?

通过POI追加数据到excel中小案例

Common interview questions in Android, 2022 golden nine silver ten Android factory interview questions hit

HiEngine:可媲美本地的云原生内存数据库引擎

ELK分布式日志分析系统部署(华为云)

集合

测试外包公司怎么样?

How to realize the Online timer and offline timer in the game
随机推荐
Worthy of being a boss, byte Daniel spent eight months on another masterpiece
IBM has laid off 40 + year-old employees in a large area. Mastering these ten search skills will improve your work efficiency ten times
不愧是大佬,字节大牛耗时八个月又一力作
flume系列之:拦截器过滤数据
shell编程基础(第9篇:循环)
在线协作产品哪家强?微软 Loop 、Notion、FlowUs
Reinforcement learning - learning notes 4 | actor critical
PG basics -- Logical Structure Management (user and permission management)
大厂面试必备技能,2022Android不死我不倒
The basic grammatical structure of C language
Tutoriel de téléchargement et d'installation du progiciel fuzor 2020
测试外包公司怎么样?
14、用户、组和权限(14)
Go语言学习教程(十六)
Fundamentals of shell programming (Part 8: branch statements -case in)
Fundamentals of shell programming (Chapter 9: loop)
Shell编程基础(第8篇:分支语句-case in)
JAD installation, configuration and integration idea
UWB ultra wideband positioning technology, real-time centimeter level high-precision positioning application, ultra wideband transmission technology
ELK分布式日志分析系统部署(华为云)