问题描述
我正在尝试在多台Windows计算机上执行并行MPI程序(实际上我有一台Win7和一台WinXP计算机,但是具有其他配置的人(例如,在所有计算机上都是WinXP)都存在相同的问题).我使用MPICH2(1.4.1p1).如果我使用wmpiexec(MPIEXEC包装器-MPI的GUI),则可以执行程序,但是如果尝试从控制台执行它,则会捕获下一个错误:
I'm trying to execute parallel MPI program on several Windows machines (actually I have one Win7 and one WinXP machines, but people with other configurations (WinXP on all machines, for example) have the same problem). I use MPICH2 (1.4.1p1). I can execute program if I use wmpiexec (MPIEXEC wrapper - GUI for MPI) but if I try to execute it from console I catch next error:
命令:mpiexec -hosts 2 locahost 2 192.168.0.102 2 <path to the program>
错误:mpiexec running on <name of my machine> is unable to connect to msmpi service on locahost:8677
Command: mpiexec -hosts 2 locahost 2 192.168.0.102 2 <path to the program>
Error: mpiexec running on <name of my machine> is unable to connect to msmpi service on locahost:8677
我已经在Windows防火墙中为该程序创建了规则.那么哪里可能有问题呢?预先感谢.
I have created rule for the program in Windows firewall.So where can be a problem?Thanks in advance.
推荐答案
这是一个很奇怪的解决方案,但是当mpiexec.exe
和executable MPI-program
在同一目录中时,一切都很好.
It's a wierd solution, but when mpiexec.exe
and executable MPI-program
is in the same directory everything is fine.
这篇关于从多台Windows计算机上的控制台运行MPI程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!