Fix macOS multiprocessing bug
fixes
@@ -30,6 +30,13 @@ from timeit import default_timer as timer
from siliconcompiler.client import *
from siliconcompiler.schema import *
+# Fix for multprocessing bug on MacOS
+# Source: https://github.com/Koed00/django-q/issues/389#issuecomment-699481976
+import platform
+if platform.system() != "Linux":
+ from multiprocessing import set_start_method
+ set_start_method("fork")
+
class Chip:
"""Object for configuring and executing hardware design flows.
