-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Deadlock with multiprocessing (using fork) and OpenMP #1552
Comments
I ran into a similar problem with Time per mesh construction with 2 processes was about 65 seconds. With a single process, it was less than a second. |
@district10 I think this is a common issue with https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods |
I just wanted to post a slightly different use case because I found this thread helpful, and maybe it'll help other googlers. I was trying to run a series of
And the code was freezing on
The trick, as suggested here, was to set |
Had the same problem with |
|
Python code not working properly in another process.
To reproduce, use these code:
Output on unix:
If uncomment
set_start_method('spawn')
, it will finish properly.Related issue: pytorch/pytorch#17199
It's caused by GNU OpenMP. Maybe compile againt Intel OpenMP?
The text was updated successfully, but these errors were encountered: