Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenMP #24

Closed
wuye901126 opened this issue May 17, 2024 · 1 comment
Closed

OpenMP #24

wuye901126 opened this issue May 17, 2024 · 1 comment

Comments

@wuye901126
Copy link

本地调用模式
加载模型:D:/BigModel/Chenyme-AAVT-main/models/medium
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/.

@Chenyme
Copy link
Owner

Chenyme commented May 17, 2024

你好,该问题您可参考:#22

问题可能是由下面的原因导致:PyTorch包中包含了名为libiomp5md.dll的文件,与Anaconda环境中的同名文件出现冲突。

解决方法有如下两种:

  1. 在项目文件中添加下面的代码,但注意这不是根本性解决问题的方法。
import os
os.environ[“KMP_DUPLICATE_LIB_OK”]=“TRUE”
  1. 删除其中一个libiomp5md.dll
  • 删除项目目录..\env\Lib\site-packages\torch\lib下的libiomp5md.dll文件(推荐)
  • 或者删除Anaconda下的重复libiomp5md.dll(注意不要删错,否则可能导致其他库不可用或者其他错误)

如果有更多问题,可以加入群组讨论,或在此继续回复,感谢你的反馈~

@Chenyme Chenyme closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants