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

Two tesseract commands at the same time blocks each other from finishing #2609

Closed
MoxBe opened this issue Aug 10, 2019 · 3 comments
Closed

Comments

@MoxBe
Copy link

MoxBe commented Aug 10, 2019

Environment

  • Tesseract Version: 4.1.0
  • Platform: Ubuntu 18.04

Current Behavior:

Running two tesseract commands at the same time blocks each other from finishing.
If I run just one tesseract command it finishes in 2 seconds.
If I run two at the same time it doesn't finish for more then 20 seconds, if I cancel one then the other finishes immediately.

Expected Behavior:

Not to block each other from execution.

Suggested Fix:

Don't know.

@Shreeshrii
Copy link
Collaborator

Try running it as

OMP_THREAD_LIMIT=1  tesseract  

I have found that while openmp is useful during lstmtraining it slows down lstmeval and tesseract on my system. My workaround has been to use OMP_THREAD_LIMIT=1 before the command.

If you don't plan to do training, you can try to build tesseract with --disable-openmp config option.

@Shreeshrii
Copy link
Collaborator

Also see #943

@MoxBe
Copy link
Author

MoxBe commented Aug 12, 2019

OMP_THREAD_LIMIT=1 seems to be the solution, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants