简体   繁体   English

OpenMPI 1.4.3 mpirun 主机文件错误

[英]OpenMPI 1.4.3 mpirun hostfile error

I am trying to run a simple MPI program on 4 nodes.我正在尝试在 4 个节点上运行一个简单的 MPI 程序。 I am using OpenMPI 1.4.3 running on Centos 5.5.我正在使用在 Centos 5.5 上运行的 OpenMPI 1.4.3。 When I submit the MPIRUN Command with the hostfile/machinefile, I get no output, receive a blank screen.当我使用主机文件/机器文件提交 MPIRUN 命令时,我没有收到 output,收到一个空白屏幕。 Hence, I have to kill the job.因此,我必须杀死这份工作。 . .

I use the following run command: : mpirun --hostfile hostfile -np 4 new46我使用以下运行命令::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 am trying to execute on 4 nodes这是我试图在 4 个节点上执行的 MPI 程序

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

   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 hostfile looks like this:我的主机文件如下所示:

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

I ran the above MPI program independently on each of the nodes and it compiled and ran just fine.我在每个节点上独立运行了上述 MPI 程序,它编译并运行得很好。 I have this issue of " Daemon did not report back when launched " when I use the hostfile.当我使用主机文件时,我遇到了“启动时守护程序没有报告”的问题。 I am trying to figure out what could be the issue.我试图找出可能是什么问题。

Thanks!谢谢!

I think these lines我认为这些线

myocyte46 - daemon did not report back when launched

are pretty clear -- you're having trouble either launching the mpi daemons or communicating with them afterwards.很清楚——您在启动 mpi 守护程序或之后与它们通信时遇到了麻烦。 So you need to start looking at networking.所以你需要开始关注网络。 Can you ssh without password into these nodes?您可以在没有密码的情况下 ssh 进入这些节点? Can you ssh back? ssh 能回来吗? Leaving aside the MPI program, can you抛开 MPI 程序,你能

mpirun -np 4 hostname

and get anything?得到什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM