当前位置:网站首页>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文件

再次运行程序,问题完美解决!
希望本文对大家有帮助,上文若有不妥之处,欢迎指正
分享决定高度,学习拉开差距
边栏推荐
猜你喜欢

毕业1年从事软件测试拿下11.5k,没有给98后丢脸吧...

猎豹移动终于递交年报:年营收7.85亿 腾讯持股16.6%
![[Summary] 1396- 60+ VSCode plugins to create a useful editor](/img/e4/65e55d0e4948c011585b72733d4d19.jpg)
[Summary] 1396- 60+ VSCode plugins to create a useful editor

Codeblocks + Widgets create window code analysis

LeetCode Exercise - Two Questions About Finding Sum of Array Elements

荐书 | 推荐好评如潮的3本数据库书籍

Application of time series database in the field of ship risk management

基础架构之Mongo

银行适用:此文能够突破你的运维流程管理问题

你好好想想,你真的需要配置中心吗?
随机推荐
【HarmonyOS】【ARK UI】HarmonyOS ets语言怎么实现双击返回键退出
"Ruffian Heng Embedded Bimonthly" Issue 59
AI Basics: Graphical Transformer
【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list
Presto 中 lookUp Join的实现
积性函数
Recommendation | People who are kind to you, don't repay them by inviting them to eat
AWS 控制台
SQL行列转换
OSPF详解(3)
CMake库搜索函数居然不搜索LD_LIBRARY_PATH
基础架构之Redis
【HMS core】【Analytics Kit】【FAQ】如何解决华为分析付费分析中付款金额显示为0的问题?
Anaconda Navigator stuck on loading applications
【Qt Designer工具的使用】
单例模式 (Singleton)
ROS 节点初始化步骤、topic/service创建及使用
Basic use of scrapy
C# wpf 无边框窗口添加阴影效果
3D机器视觉厂商的场景争夺战役