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

batch_run should default to running on 1 CPU #1210

Closed
rht opened this issue Mar 25, 2022 · 0 comments · Fixed by #1300
Closed

batch_run should default to running on 1 CPU #1210

rht opened this issue Mar 25, 2022 · 0 comments · Fixed by #1300

Comments

@rht
Copy link
Contributor

rht commented Mar 25, 2022

Currently, it uses up all the CPUs available in a system. This causes complication with the tutorial for Windows, where a nasty workaround is needed for multiprocessing (i.e. the freeze_support).

Then, if number_processes is > 1 and on Windows, we show a warning that tells user to add freeze_support() (we pre-emptively tell the user of this issue instead of waiting for it to happen). This warning can be disabled via a flag to the function:

batch_run(
    ...
   hide_windows_freeze_support_warning=True,
   ...
)

Originally posted in #1202.

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

Successfully merging a pull request may close this issue.

1 participant