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

Multithreadding Vulture operator for NER produces a race condition #167

Closed
ryancb4 opened this issue May 1, 2024 · 2 comments
Closed

Multithreadding Vulture operator for NER produces a race condition #167

ryancb4 opened this issue May 1, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ryancb4
Copy link
Collaborator

ryancb4 commented May 1, 2024

No description provided.

@MaksimEkin
Copy link
Member

I disagree

@ryancb4
Copy link
Collaborator Author

ryancb4 commented May 2, 2024

Solution for NER race condition:

Use parallel_backend=multiprocessing Vulture parameter and initialize the script with:

import os
os.environ["OMP_NUM_THREADS"] = "1" # export OMP_NUM_THREADS=1
os.environ["OPENBLAS_NUM_THREADS"] = "1" # export OPENBLAS_NUM_THREADS=1
os.environ["MKL_NUM_THREADS"] = "1" # export MKL_NUM_THREADS=1
os.environ["VECLIB_MAXIMUM_THREADS"] = "1" # export VECLIB_MAXIMUM_THREADS=1
os.environ["NUMEXPR_NUM_THREADS"] = "1" # export NUMEXPR_NUM_THREADS=1

@ryancb4 ryancb4 closed this as completed May 2, 2024
@ryancb4 ryancb4 self-assigned this May 2, 2024
@ryancb4 ryancb4 added the bug Something isn't working label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants