我正在尝试在 4 个节点上运行一个简单的 MPI 程序。我正在使用在 Centos 5.5 上运行的 OpenMPI 1.4.3。当我使用主机文件/机器文件提交 MPIRUN 命令时,我没有得到任何输出,而是出现空白屏幕。因此,我必须终止这份工作。 .
我使用以下运行命令:: 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 程序
**************************
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 程序,它编译并运行得很好。我有这个问题“守护进程启动时没有报告“当我使用主机文件时。我试图找出可能出现的问题。
Thanks!