-
Notifications
You must be signed in to change notification settings - Fork 56
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
mp_island starts its own ipyparallel_bfe even when constructed with an UDBFE [BUG] #148
Comments
Hi @dalbabur When you run an evolution on an My guess would be that during (de)serialisation of the Is there any specific reason why you want to mix process-based serialisation with ipyparallel? |
Oh I see, that makes sense. Then, theoretically, it would be possible by modifying The original reason I was interested in mixing process-based serialisation with ipyparallel was to offload part of the work to a local machine, while doing the more expensive fitness evaluations in a remote cluster. I've tried two ipyparallel clusters, and that works fine, but was wondering about other options, as increasing the number of ipyparallel nodes really slows things down. |
After taking a look at the code, I realised my explanation was partly incorrect. Indeed, what is happening is that pygmo manages a global instance of the What is happening instead is that the remote process has its own I see two possible solutions, both of which I think involve some modifications in the pygmo source code:
Personally I would prefer number 2). I initially wrote To be honest, we never got much user feedback for the If you have some familiarity with The relevant code would be here: https://github.com/esa/pygmo2/blob/master/pygmo/_py_bfes.py#L321 I don't think it would be too much work. |
Describe the bug
I'm passing a UDBFE with an initialized ipyparallel view to the island constructor. When initializing the population, it correctly uses the UDBFE. However, when evolving the island, it tries to create a new BFE with the default ipyparallel cluster!
To Reproduce
Define UDI and UDBFE
Start islands. Evaluation does happen with the correct UDBFE
Error when evolving the islands:
The text was updated successfully, but these errors were encountered: