Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Greg Wolffe (wolffe_at_[hidden])
Date: 2006-11-21 16:12:25


Hello,

    Experienced lam/mpi user trying openmpi for the first time. For
some reason, my hostfile is not being recognized. It's such a simple
problem (see below) that I couldn't find anything in the FAQ or archives.

    Thanks in advance for any help.

gw

// simple program compiles just fine
[eos02:~/openmpi]$ mpicc -Wall hello.c -o hello

// program runs just fine using command line to specify hosts
[eos02:~/openmpi]$ mpirun -np 3 --hosts eos01,eos02,eos03 hello
Nodes: 3
Hello from Master (process 0)!
Hello from process 1!
Hello from process 2!

// same hosts listed in hostfile
[eos02:~/openmpi]$ cat my-hostfile
# Hostfile for OpenMPI environment
eos01
eos02
eos03

// hostfile cannot be read?
[eos02:~/openmpi]$ mpirun -np 3 --hostfile my-hostfile hello
--------------------------------------------------------------------------
Open RTE detected a parse error in the hostfile:
    my-hostfile
It occured on line number 2 on token 1.
--------------------------------------------------------------------------
[eos02.cis.gvsu.edu:02480] [0,0,0] ORTE_ERROR_LOG: Error in file
rmgr_urm.c at line 407
[eos02.cis.gvsu.edu:02480] mpirun: spawn failed with errno=-1
[eos02:~/openmpi]$