Giter Site home page Giter Site logo

Comments (4)

rhc54 avatar rhc54 commented on July 1, 2024

Yes, that is exactly as it should do. I'd suggest reading the hostfile documentation - it explains all this and provides examples.

from ompi.

rhl-bthr avatar rhl-bthr commented on July 1, 2024

Sorry, maybe I should have been clearer. Running mpi with 2 hosts in the hostfile, and setting -np 2, still runs both processes on the same one host, and none on the other. My expectation was that it would run one process per host.

Is this behaviour expected? If so, is there a way I can use -hostfile but still enforce the behavior that runs one process per host, which is what I'm getting when I run mpi with the setting mpirun -host 10.4.0.1,10.4.0.2 -np 2 hostname

from ompi.

rhc54 avatar rhc54 commented on July 1, 2024

Sorry, maybe I should have been clearer. Running mpi with 2 hosts in the hostfile, and setting -np 2, still runs both processes on the same one host, and none on the other. My expectation was that it would run one process per host.

No, that expectation is not correct. You really should read the hostfile doc - we spent quite a bit of time on it to ensure it clearly explained all this.

If so, is there a way I can use -hostfile but still enforce the behavior that runs one process per host, which is what I'm getting when I run mpi with the setting mpirun -host 10.4.0.1,10.4.0.2 -np 2 hostname

Sure - but the precise syntax depends on which OMPI version you are using (which you haven't told us). You might want to try mpirun --help or check the mpirun documentation for placement options.

from ompi.

rhl-bthr avatar rhl-bthr commented on July 1, 2024

Ah thanks, found it.

In case someone runs into this issue, I was able to solve this issue in two ways - by either adding -N 1 or --map-by-ppr:1:node. I was using OMPI version 4.0.3

from ompi.

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.