Comments (4)
Yes, that is exactly as it should do. I'd suggest reading the hostfile documentation - it explains all this and provides examples.
from ompi.
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.
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.
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)
- DVM environment variable? HOT 3
- Error while building from source openmpi 5.0.3 HOT 1
- Fault tolerant error when re spawn process in mpiexec in remote node
- fortran .mod files installed in libdir instead of includedir HOT 34
- PMIX_ERROR when MPI_Comm_spawn in multiple nodes HOT 12
- coll tuned alltoall algorithm ignored after initialization
- Build fail on Mac M3 with macOS clang 15 HOT 1
- Mystery error on exit HOT 4
- pkgconfig files not installed with `--enable-script-wrapper-compilers` HOT 3
- mpirun nccl-test hang HOT 1
- cannot MPI_File_open a one-character filename, deletes external file anyways HOT 4
- Reduce_local Segmentation fault when Running with IMB-MPI1 built for GPU HOT 3
- mpirun 5.0.3 has bug on parse shell args while 4.1.6 works well. HOT 12
- Remove script wrappers in v6.0.x HOT 3
- 5.0.3: hostfile help file is misnamed HOT 3
- Warnings in oshmem HOT 2
- lower coll accelerator priority
- Improve documentation of the `coll tuned` component
- mpirun V5.0.3 hangs running hello_world in two nodes HOT 13
- Reduce collectives latency by reusing temporary buffers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ompi.