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

Parallelization #66

Open
mizimmer90 opened this issue Aug 9, 2017 · 2 comments
Open

Parallelization #66

mizimmer90 opened this issue Aug 9, 2017 · 2 comments
Assignees

Comments

@mizimmer90
Copy link
Collaborator

We need to figure out a standardized parallelization protocol

@Justin-J-Miller
Copy link
Collaborator

Wanted to re-up discussion on this. We've not historically had issues using multiprocessing.Pool(), but this launches processes as forks which can hang indefinitely. Starting with python 3.12, launching processes in this way throws a warning, and starting with python 3.14 the default will switch away from launching with fork to either spawn or forkserver.

We could do the following at the top of each script that launches things from Pool to switch everything from fork to spawn.

from multiprocessing import set_start_method
set_start_method("spawn")

Though I'm sure how big of a performance hit (both with memory and throughput) we might take with that.

@justinrporter
Copy link
Collaborator

justinrporter commented Jul 25, 2024 via email

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

3 participants