使用Ctrl + C退出程序后运行程序时出现MPI错误

时间:2015-07-13 15:41:54

标签: c++ mpi

我在Ubuntu 14.04中运行了一个用C ++开发的OpenMPI版本1.6.5的程序。

一切都工作正常(即程序按照预期执行),直到我在某一点上使用Ctrl + C退出它,因为我意识到我用错误的输入值运行它并且无法等待等待它完成(大,菜鸟的错误!)。

在我更改变量值并重新编译程序(好吧)后,我尝试使用mpirun -np 8 program_name再次运行程序。但是,OpenMPI返回以下错误:

mpirun has exited due to process rank 5 with PID 3363 on
node Hal exiting improperly. There are two reasons this could occur:

1. this process did not call "init" before exiting, but others in
the job did. This can cause a job to hang indefinitely while it waits
for all processes to call "init". By rule, if one process calls "init",
then ALL processes must call "init" prior to termination.

2. this process called "init", but exited without calling "finalize".
By rule, all processes that call "init" MUST call "finalize" prior to
exiting or it will be considered an "abnormal termination"

This may have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).

我尝试重新编译程序并多次运行它,但总是得到相同的错误,具有不同的进程级别,具体取决于先调用的那个(我假设)。由于我认为问题与我退出前一次运行的“不太好”的方式有关,我重新启动了计算机,但错误仍然存​​在。

是否有命令关闭所有MPI运行或文件清除以查看是否存在问题?

非常感谢你!

0 个答案:

没有答案