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

multiprocessing RunitimeError for Windows #118

Merged
merged 3 commits into from
Jun 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cadCAD/engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def __init__(self, context: str = ExecutionMode.multi_proc) -> None:
if context == 'single_proc':
self.method = single_proc_exec
elif context == 'multi_proc':
import os
if os.name == 'nt': # == windows
#For windows: to serialize global varibales in multi-processes
import dill
dill.settings['recurse'] = True
self.method = parallelize_simulations


Expand Down