Giter VIP home page Giter VIP logo

Comments (5)

bluescarni avatar bluescarni commented on May 22, 2024

@jmllorens are you on Python 2?

from pagmo2.

jmllorens avatar jmllorens commented on May 22, 2024

Yes, sorry, I should have mentioned it.

from pagmo2.

bluescarni avatar bluescarni commented on May 22, 2024

For pagmo2 we made the decision to require ipyparallel for parallel operations in Python 2 Linux. The reasons have to do with some technical details about how the multiprocessing module works in Python 2 in a Linux environment. Basically, it boils down to the fact that Python 2 in Linux does not allow us to enforce a behaviour of the parallel bits of pagmo consistent with the behaviour on other platforms and/or Python 3.

Note that you don't need an actual cluster to run pygmo in parallel with ipyparallel. You just need to run the

ipcluster start

command in a separate shell. This will setup a "local" cluster with a number of processes equal to the number of cores on your machine. After the cluster has been started, you can fire up pygmo and everything should work.

from pagmo2.

jmllorens avatar jmllorens commented on May 22, 2024

It works without problems now. Seems a good decision. I was a bit scared at first, because even without cluster, sometimes a few files should be edited. But the setup of ipcluster is rather straightforward.

Migration to pagmo2 completed for my current optimization.

Thanks for your help.

from pagmo2.

bluescarni avatar bluescarni commented on May 22, 2024

No problem!

Note that there are missing features in the current archipelago wrt pagmo 1.x (the topology/migration bits are not there yet). We will add them back soon.

from pagmo2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.