当前位置:网站首页>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
边栏推荐
- Recommended collection, my Tencent Android interview experience sharing
- C#应用程序界面开发基础——窗体控制(5)——分组类控件
- 众昂矿业:2022年全球萤石行业市场供给现状分析
- Worthy of being a boss, byte Daniel spent eight months on another masterpiece
- Is it safe for China Galaxy Securities to open an account? Securities account opening
- 如何在2022年更明智地应用智能合约?
- Microwave radar induction module technology, real-time intelligent detection of human existence, static micro motion and static perception
- Two pits exported using easyexcel template (map empty data columns are disordered and nested objects are not supported)
- shell编程基础(第9篇:循环)
- How to realize the Online timer and offline timer in the game
猜你喜欢
Millimeter wave radar human body sensor, intelligent perception of static presence, human presence detection application
5 years of experience, 27 days of Android programmer interview, 2022 programmer advanced classic
Go语言 | 02 for循环及常用函数的使用
使用easyexcel模板导出的两个坑(Map空数据列错乱和不支持嵌套对象)
Xaas trap: all things serve (possible) is not what it really needs
Notion 类生产力工具如何选择?Notion 、FlowUs 、Wolai 对比评测
Necessary skills for interview in large factories, 2022android will not die, I will not fall
[OBS] qstring's UTF-8 Chinese conversion to blog printing UTF-8 char*
太牛了,看这篇足矣了
Oracle故障处理:Ora-10873:file * needs to be either taken out of backup or media recovered
随机推荐
MySql中的longtext字段的返回问题及解决
Can Leica capture the high-end market offered by Huawei for Xiaomi 12s?
强化学习-学习笔记4 | Actor-Critic
What does software testing do? What are the requirements for learning?
不愧是大佬,字节大牛耗时八个月又一力作
third-party dynamic library (libcudnn.so) that Paddle depends on is not configured correctl
测试的核心价值到底是什么?
Debezium系列之:修改源码支持drop foreign key if exists fk
众昂矿业:2022年全球萤石行业市场供给现状分析
JAD的安装、配置及集成IDEA
S7-200SMART利用V90 MODBUS通信控制库控制V90伺服的具体方法和步骤
Float.floatToRawIntBits的返回值具体意思,将float转为byte数组
Do you know several assertion methods commonly used by JMeter?
Hiengine: comparable to the local cloud native memory database engine
Fundamentals of shell programming (Part 8: branch statements -case in)
微波雷达感应模块技术,实时智能检测人体存在,静止微小动静感知
城链科技数字化创新战略峰会圆满召开
Worthy of being a boss, byte Daniel spent eight months on another masterpiece
Zhongang Mining: analysis of the current market supply situation of the global fluorite industry in 2022
MMO project learning 1: preheating