OpenMPI 1.4.3 mpirun host file error

I am trying to run a simple MPI program on 4 nodes. I am using OpenMPI 1.4.3, running on Centos 5.5. When I send the MPIRUN command with hostfile / machinefile, I get no output, I get a blank screen. Therefore, I have to kill the job.,

I use the following run command :: mpirun --hostfile hostfile -np 4 new46

 OUTPUT ON KILLING JOB:
 mpirun: killing job...
 --------------------------------------------------------------------------
  mpirun noticed that the job aborted, but has no info as to the process that caused 
  that situation.
  --------------------------------------------------------------------------
  mpirun was unable to cleanly terminate the daemons on the nodes shown
   below. Additional manual cleanup may be required - please refer to
   the "orte-clean" tool for assistance.
   --------------------------------------------------------------------------
    myocyte46 - daemon did not report back when launched
    myocyte47 - daemon did not report back when launched
    myocyte49 - daemon did not report back when launched

Here is the MPI program I'm trying to run on 4 nodes

   **************************

   if (my_rank != 0)
   {
    sprintf(message, "Greetings from the process %d!", my_rank);
    dest = 0;
    MPI_Send(message, strlen(message)+1, MPI_CHAR, dest, tag, MPI_COMM_WORLD);
   }
   else
   {
   for (source = 1;source < p; source++)
   {
    MPI_Recv(message, 100, MPI_CHAR, source, tag, MPI_COMM_WORLD, &status);
    printf("%s\n", message);
   }

   ****************************

My host file is as follows:

   [amohan@myocyte48 ~]$ cat hostfile
   myocyte46
   myocyte47
   myocyte48
   myocyte49
   *******************************

I ran the above MPI program independently of each node, and it compiled and executed just fine. I had a problem with “Daemon did not return at startup” when I use the host file. I am trying to figure out what could be the problem.

Thank!

+5
1

,

myocyte46 - daemon did not report back when launched

- mpi . . ssh ? ? MPI,

mpirun -np 4 hostname

-?

+1

All Articles