当前位置:网站首页>OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.解决方法
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.解决方法
2022-07-30 18:29:00 【鲁棒最小二乘支持向量机】
搭建简单的UNet网络,运行predict程序时,突然报错:
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute,
but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
第一次遇见该错误,网上查找相关解决方案:
import os
os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE
添加代码,运行之后,仍然报错,仔细阅读错误信息:
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
意思是libiomp5md.dll已经初始化,那么可能是环境中dll文件冲突,找到运行环境目录,尝试删除libiomp5md.dll文件

再次运行程序,问题完美解决!
希望本文对大家有帮助,上文若有不妥之处,欢迎指正
分享决定高度,学习拉开差距
边栏推荐
- 【Qt Designer工具的使用】
- 【HMS core】【FAQ】Account Kit、MDM能力、push Kit典型问题合集6
- Hello, my new name is "Bronze Lock/Tongsuo"
- 沉浸式体验科大讯飞2022消博会“官方指定产品”
- Kettle(二):连接SQL Server数据库
- WeChat Mini Program Cloud Development | Urban Information Management
- 基础架构之Redis
- Vulkan与OpenGL对比——Vulkan的全新渲染架构
- 攻防世界web-Cat
- [Use of Qt Designer tool]
猜你喜欢

SwiftUI iOS Boutique Open Source Project Complete Baked Food Recipe App based on SQLite (tutorial including source code)

固定资产可视化智能管理系统

AI基础:图解Transformer

针不戳,数据库性能优化八大方案。

ctf.show_web5

ByteArrayInputStream class source code analysis

natural language processing nltk

Fixed asset visualization intelligent management system

【Pointing to Offer】Pointing to Offer 22. The kth node from the bottom in the linked list

6块钱1斤,日本公司为何来中国收烟头?
随机推荐
Leetcode数据库系列题解合集(持续更新)
【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list
(2022杭电多校四)1001-Link with Bracket Sequence II(区间动态规划)
智慧中控屏
arcpy获取要素类(属性表)包含的数目
微信小程序云开发 | 城市信息管理
第十六期八股文巴拉巴拉说(MQ篇)
Codeblocks + Widgets 创建窗口代码分析
ctf.show_web5
【HMS core】【FAQ】Account Kit、MDM能力、push Kit典型问题合集6
二分答案裸题(加一点鸽巢原理)
【HarmonyOS】【ARK UI】HarmonyOS ets语言怎么实现双击返回键退出
kotlin by lazy
CMake库搜索函数居然不搜索LD_LIBRARY_PATH
SwiftUI iOS 精品开源项目之 完整烘焙食品菜谱App基于SQLite(教程含源码)
Mysql execution principle analysis
【总结】1396- 60+个 VSCode 插件,打造好用的编辑器
Pytorch foundation -- tensorboard use (1)
AWS 控制台
博纳影通过IPO注册:阿里腾讯是股东 受疫情冲击明显