Skip to content

Set start method to forkserver for MacOS #3919

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

Merged
merged 3 commits into from
May 11, 2020
Merged
Changes from 1 commit
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
Next Next commit
Set start method to forkserver for MacOS
  • Loading branch information
AlexAndorra committed May 11, 2020
commit 4002713f7e17959359f2066c478efa620ffd9e6b
7 changes: 6 additions & 1 deletion pymc3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
__version__ = "3.8"

import logging
import multiprocessing as mp
import platform

_log = logging.getLogger("pymc3")

Expand All @@ -25,10 +27,13 @@
handler = logging.StreamHandler()
_log.addHandler(handler)

sys = platform.system()
if sys == "Darwin":
_ = mp.get_context("forkserver")


def __set_compiler_flags():
# Workarounds for Theano compiler problems on various platforms
import platform
import theano

system = platform.system()
Expand Down