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

Parallelisation issues #62

Open
gmingas opened this issue Sep 8, 2020 · 4 comments
Open

Parallelisation issues #62

gmingas opened this issue Sep 8, 2020 · 4 comments
Assignees

Comments

@gmingas
Copy link
Collaborator

gmingas commented Sep 8, 2020

I posted this in pymc3-devs/pymc3 regarding the inability to run multi-core sampling with theano ops in my Mac:
pymc-devs#4085

@mikkelbue not sure if your issue is related but take a look at the other issues I mention in there in case you find something that connects.

@gmingas gmingas self-assigned this Sep 8, 2020
@gmingas
Copy link
Collaborator Author

gmingas commented Sep 9, 2020

It seems the reason parallelisation does not work along with a workaround is here, i.e. when running on Mac you need to import from an external file all the classes and functions that you use to define your likelihood.

@gmingas
Copy link
Collaborator Author

gmingas commented Sep 21, 2020

See this: pymc-devs#4085

@gmingas
Copy link
Collaborator Author

gmingas commented Oct 1, 2020

We have at least two issues:

@mikkelbue
Copy link
Collaborator

I have two parallelisation issues on my Linux (Ubuntu 18.04) machine, really:

  1. Like you mentioned, parallel runs take as long as serial ones, but for the Gravity example only. Si I expect it might be something on the NumPy side, since that is the only library that is used in that example.
  2. If using FEniCS in the forward model, the Jupyter kernel crashes and immediately restarts as soon as sampling is complete. It does run faster than serial, though, but the results are lost after the kernel restart. I suspect this has something to do with the order of imports, but I am not sure.

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

No branches or pull requests

2 participants