Open sshres opened 6 years ago
What version of emcee are you using? How did you install it? Please make a minimal working example that demonstrates this issue.
I used 'pip install emcee', version emcee-2.2.1. The code worked fine when I used the ProcessingPool from pathos.multiprocessing but since I wanted to run my code on a cluster, I thought I'd use MPI which when I get the above posted error. Here's the full code: https://github.com/sshres/CoupledModel/blob/master/mpiemcee_coupled.py since the log posterior was a bit complicated to post here.
Can you please write the minimal working code snippet? It shouldn't depend on your data or your specific model. That way we can nail down where the issue is coming from. You should also say exactly what command line argument you're executing to run your script with MPI.
Also: what does emcee.version say? And how did you install mpi4py? What version of mpi4py is it? On Thu, Nov 9, 2017 at 11:40 PM sshres notifications@github.com wrote:
I used 'pip install emcee' today. The code worked fine when I used the ProcessingPool from pathos.multiprocessing but since I wanted to run my code on a cluster, I thought I'd use MPI which when I get the above posted error. Here's the full code: https://github.com/sshres/CoupledModel/blob/master/mpiemcee_coupled.py since the log posterior was a bit complicated to post here.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/dfm/emcee/issues/244#issuecomment-343373247, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVYSme64_8coO6KFoMwvdw2JFp823GGks5s09PNgaJpZM4QY77w .
Also: you might want to double check the emcee MPI docs: http://emcee.readthedocs.io/en/stable/user/advanced.html#using-mpi-to-distribute-the-computations On Fri, Nov 10, 2017 at 6:31 AM Dan Foreman-Mackey foreman.mackey@gmail.com wrote:
Can you please write the minimal working code snippet? It shouldn't depend on your data or your specific model. That way we can nail down where the issue is coming from. You should also say exactly what command line argument you're executing to run your script with MPI.
Also: what does emcee.version say? And how did you install mpi4py? What version of mpi4py is it? On Thu, Nov 9, 2017 at 11:40 PM sshres notifications@github.com wrote:
I used 'pip install emcee' today. The code worked fine when I used the ProcessingPool from pathos.multiprocessing but since I wanted to run my code on a cluster, I thought I'd use MPI which when I get the above posted error. Here's the full code: https://github.com/sshres/CoupledModel/blob/master/mpiemcee_coupled.py since the log posterior was a bit complicated to post here.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/dfm/emcee/issues/244#issuecomment-343373247, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVYSme64_8coO6KFoMwvdw2JFp823GGks5s09PNgaJpZM4QY77w .
I'm only seeing this error at the end when using MPIPool in the emcee sampler, it works fine with a multiprocessing pool.
Has anybody had this problem?