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

1. Slowness, 2. libiomp5md.dll already initialized. #468

Open
Magenta-6 opened this issue Jun 7, 2023 · 1 comment
Open

1. Slowness, 2. libiomp5md.dll already initialized. #468

Magenta-6 opened this issue Jun 7, 2023 · 1 comment

Comments

@Magenta-6
Copy link

Magenta-6 commented Jun 7, 2023

I installed tortoise-tts using anaconda and Python 3.10 following the Readme

First time it ran the standard phrase:

python tortoise/do_tts.py --text "I'm going to speak this" --voice random --preset fast
Taking 15 mins to generate 3 audio.wavs

2nd Time with a slight variation:
(tortoise-tts) C:\Users\XYZ\tortoise-tts>python tortoise/do_tts.py --text "Hello Martians bow to the Earthling overlords" --voice train_kennard --preset fast

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/.

Doing a search using explorer I found 32 instances of libiomp5md.dll on my C:\drive.
It is used in many different programs including Photoshop, Premiere Rush, TouchDesigner, Flowframes, DaVinciResolve, Intel Extreme Tuning Utility, StableDiffusion, oobabooga, Kohya, Bark-tts, Silero-tts

In the C:\Users\XYZ\anaconda3\path . . . there are six instances of libiomp5md.dll

I attempted to set the environment variable using System properties.
The name I gave it was >OpenMPRuntime Q? Is this a good name or should it be something else?
The variable>KMP_DUPLICATE_LIB_OK=TRUE

This made no difference, so I will re-boot and re-try.
Rebooting and redo-ing made no difference either.

@cgiles
Copy link

cgiles commented Dec 19, 2023

I add the same issue, I did a search on my anaconda folder too, and found that my env/tortoise add two times this file. I renamed one to libiomp5md.dllbak and it worked then.

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