Closed sourestdeeds closed 3 years ago
For pool
objects to work properly within dynesty
, you need to have the ability to pass through multiple functions and arguments due to how things are wrapped. I think functools
should do the trick, but I'm not positive.
Thanks Josh! I may just use a different approach and parallel another way.
Hey, I am a littel confused. I tried to use multiprocessing to parallelize dynasty as there are also some examples in the issues here. However, I also gett a pickle error:
"AttributeError: Can't pickle local object 'DynestySampler.initialize.
I already implemented it with the manager of mulitprocessing (https://superfastpython.com/multiprocessing-pool-share-with-workers/) but still get the error.
Is multiprocessing supposed to work with dynasty? If not what are good arguments for pool? OpenMPI is not working for me as I am using it for Systems Biology together with amici which conflicts in many ways with OpenMPI
Thanks for any help in advance
Please open a new issue, and show the actual code. See the guidelines of how to report issues https://github.com/joshspeagle/dynesty/blob/master/.github/ISSUE_TEMPLATE/bug_report.md
Im not too sure what the correct way to use multiple cpu's for sampling is. Currently my setup is:
Do I need to use functools to pass this through properly?