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

Job pool hangs on pool.join with maxtasksperchild set #1

Closed
MatthewThe opened this issue Jan 2, 2024 · 1 comment
Closed

Job pool hangs on pool.join with maxtasksperchild set #1

MatthewThe opened this issue Jan 2, 2024 · 1 comment

Comments

@MatthewThe
Copy link
Owner

Setting maxtasksperchild results in the pool hanging on pool.join.
The problem seems to be that the function called asynchronously uses some matrix manipulation functions that numpy parallelizes with OMP.

By prepending the command with OMP_NUM_THREADS=1, the issue is resolved.

Using threadpoolctl we could achieve this programmatically. This either has to happen in job-pool or in the program calling job-pool.

@MatthewThe
Copy link
Owner Author

Setting the number of OMP threads with threadpoolctl seems to help, but the pool.join still hangs every now and then.

@MatthewThe MatthewThe reopened this Jan 3, 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

1 participant