Skip to content
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

Move import of mpi4py to inside MPIPool initialization #152

Merged
merged 2 commits into from
Jul 24, 2016

Conversation

joezuntz
Copy link
Contributor

We have a downstream user with a broken MPI installation, which crashes on importing mpi4py. She also can't use emcee in serial mode, because the mpi_pool module tries importing mpi4py.MPI.

This change fixes that (certainly rare) issue by moving the mpi4py import to inside the MPIPool initialization.

@marius311
Copy link

I don't think this is that rare. Another example is often times if you're on the login node of a cluster, anything touching MPI will error out, so you can't test emcee unless you get a compute node. This PR fixes the issue for me in the couple of places I've run into it, it'd be great to have it merged.

@dfm dfm merged commit 4e99151 into dfm:master Jul 24, 2016
@dfm
Copy link
Owner

dfm commented Jul 24, 2016

Thanks! Sorry about the delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants