OpenMPI 1.4.3 mpirun主机文件错误 [英] OpenMPI 1.4.3 mpirun hostfile error
问题描述
我正在尝试在4个节点上运行一个简单的MPI程序.我正在使用在Centos 5.5上运行的OpenMPI 1.4.3.当我使用主机文件/机器文件提交MPIRUN命令时,没有任何输出,收到空白屏幕.因此,我必须取消工作..
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 submit the MPIRUN Command with the hostfile/machinefile, I get no output, receive a blank screen. Hence, I have to kill the job. .
我使用以下运行命令::mpirun --hostfile hostfile -np 4 new46
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
这是我要在4个节点上执行的MPI程序
Here is the MPI program I am trying to execute 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);
}
****************************
我的主机文件如下:
[amohan@myocyte48 ~]$ cat hostfile
myocyte46
myocyte47
myocyte48
myocyte49
*******************************
我在每个节点上独立运行上述MPI程序,并且编译并运行正常.使用主机文件时出现"启动时守护进程未报告"的问题.我正在尝试找出可能是什么问题.
I ran the above MPI program independently on each of the nodes and it compiled and ran just fine. 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.
谢谢!
推荐答案
我认为这些行
myocyte46 - daemon did not report back when launched
非常清楚-启动mpi守护程序或之后与它们进行通信时遇到麻烦.因此,您需要开始研究网络.您可以不使用密码SSH到这些节点吗?你可以回头吗?抛开MPI程序,您可以
are pretty clear -- you're having trouble either launching the mpi daemons or communicating with them afterwards. So you need to start looking at networking. Can you ssh without password into these nodes? Can you ssh back? Leaving aside the MPI program, can you
mpirun -np 4 hostname
得到任何东西吗?
这篇关于OpenMPI 1.4.3 mpirun主机文件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!