-
Notifications
You must be signed in to change notification settings - Fork 25
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 failure on MacOS and python3.8+ #88
Comments
I managed to have a look at the issue, and I came to the conclusion that the getstate and setstate functions that we wrote for the checkpointing of the sampler class is interfering with the serialisation necessary for the multiprocessing module. Something changed under the hood, and I cannot really track down what it is. Hence, I think we either rewrite the code or move on to a different architecture for the parallelism as in massively_parallel. |
I have reproduced this error several times on different Apple M1 laptops, where it is not possible to directly install python 3.7 (see https://stackoverflow.com/questions/70205633/cannot-install-python-3-7-on-osx-arm64). A workaround that worked for me is to install |
From my understanding, it would be recommended to adapt the code in order for CPNest to work with the In Python 3.14 the default start method will also change for Linux from As mentioned in the Python 3.12 documentation on Multiprocessing specifically:
|
CPNest currently doesn't work on MacOS with python 3.8 or above.
The failure may be related to the change to the way multiprocessing creates new processes on this platform, which changed in v3.8. See the issue here.
The error I see is
The text was updated successfully, but these errors were encountered: