open-mpi / ompi

Open MPI main development repository
https://www.open-mpi.org
Other
2.18k stars 861 forks source link

A problem about hostfile #11136

Open hust-qc opened 1 year ago

hust-qc commented 1 year ago

Thank you for taking the time to submit an issue!

Background information

I guess I installed OpenMPI successfully. But it doesn't work.

What version of Open MPI are you using? (e.g., v3.0.5, v4.0.2, git branch name and hash, etc.)

V4.1.1

Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)

when I run "mpirun -np -2 hello_c" for test, it only said:


A hostfile was provided that contains multiple definitions of the slot count for at least one node:

hostfile: /home/jon/apps/softwares/openmpi_4.1.1/etc/openmpi-default-hostfile node: jon-virtual-machine

You can either list a node multiple times, once for each slot, or you can provide a single line that contains "slot=N". Mixing the two methods is not supported.

Please correct the hostfile and try again.


An internal error has occurred in ORTE:

[[45460,0],0] FORCE-TERMINATE AT (null):1 - error base/ras_base_allocate.c(389)

This is something that should be reported to the developers.

I don't know what is the problem

If you are building/installing from a git clone, please copy-n-paste the output from git submodule status.

Please describe the system on which you are running


Details of the problem

Please describe, in detail, the problem that you are having, including the behavior you expect to see, the actual behavior that you are seeing, steps to reproduce the problem, etc. It is most helpful if you can attach a small program that a developer can use to reproduce your problem.

Note: If you include verbatim output (or a code block), please use a GitHub Markdown code block like below:

shell$ mpirun -n 2 ./hello_world
rhc54 commented 1 year ago

The error message told you the exact problem:

You can either list a node multiple times, once for each slot,
or you can provide a single line that contains "slot=N". Mixing
the two methods is not supported.

If you don't believe this is the case, then please post your hostfile.