« | July 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | |
| 公告 |
后其身而身先,外其身而身存。以其无私,故能成其私。
|
Blog信息 |
blog名称:火页的窝 日志总数:84 评论数量:180 留言数量:36 访问次数:612184 建立时间:2006年3月14日 |

| |
[Linux]解决linux环境下mpich程序无法多进程运行的问题 电脑与网络
火页 发表于 2007/8/8 13:25:32 |
安装好mpich后,运行自带的例程,单进程运行没有问题,一旦在mpirun后多带一个选项np,多进程运行时就会报错,内容如下:
connect to address 127.0.0.1: Connection refused
Trying krb4 rsh...
connect to address 127.0.0.1: Connection refused
trying normal rsh (/usr/bin/rsh)
Permission denied.
p0_5256: p4_error: Child process exited while making connection to remote
process on localhost localname: 0
p0_5256: (6.012127) net_send: could not write to fd=4, errno = 32
仔细看了错误信息,估计是PATH路径没有正确配置,于是打开.bashrc文件,在PATH的最前面加上了/usr/bin/rsh,这样程序运行会先到/usr/bin/rsh下寻找启动rsh的命令。果然,再次运行程序时报错内容少了前面的一部分,只剩下:
Permission denied.
p0_5256: p4_error: Child process exited while making connection to remote
process on localhost localname: 0
p0_5256: (6.012127) net_send: could not write to fd=4, errno = 32
这是怎么回事啊,我在网上找了两天解决此问题的方法,试了N种配置rsh、ssh和mpich的过程,同样的报错内容始终顽固的出现。直到昨天在国外的一个论坛里看到老外的一个方法:
# echo "rsh" >> /etc/securetty
居然可以!什么原因呢?我目前还不太确定,估计是改了防火墙对rsh的限制。 |
|
回复:解决linux环境下mpich程序无法多进程运行的问题 电脑与网络
小D(游客)发表评论于2009/11/3 13:56:55 |
中断请求受限制
把/etcxinet。conf
infanceses 改为200
下面那一行变成50 200 就可以看 |
|
回复:解决linux环境下mpich程序无法多进程运行的问题 电脑与网络
jj(游客)发表评论于2009/5/25 13:26:31 |
你好,我也遇到了这个问题,不知道大家是怎么解决的? email gongxiaojing1981@yahoo.com.cn
|
|
回复:解决linux环境下mpich程序无法多进程运行的问题 电脑与网络
cs007(游客)发表评论于2008/12/14 22:47:43 |
./configure --prefix=/usr/share/mpi -rsh=/usr/bin/ssh |
|
回复:解决linux环境下mpich程序无法多进程运行的问题 电脑与网络
crystal1016发表评论于2008/4/29 21:10:37 |
四号字看起来更舒服些 ^_^please help me, i need your help. |
|
回复:解决linux环境下mpich程序无法多进程运行的问题 电脑与网络
crystal1016发表评论于2008/4/29 21:04:09 |
你好,我现在遇到了与你同样的问题,报错都是类似的!在网上找了好多资料都没法解决,请务必帮帮我,很急,非常感谢你!不过用你的方法还是没有用,请问你rsh是如何配置的,都配置了那些文件。我装的mpich1.2.7,并行程序可编译,不可运行。每次运行mpirun 时报错:[crystal@localhost mpiprg]$ mpicc -o simpleio simpleio.c[crystal@localhost mpiprg]$ mpirun -np 2 simpleiolocalhost.localdomain: Connection refusedp0_19117: p4_error: Child process exited while making connection to remote process on localhost.localdomain: 0p0_19117: (33.004734) net_send: could not write to fd=4, errno = 32为方便联系,请加我的QQ:375434915再次感谢! |
|
回复:解决linux环境下mpich程序无法多进程运行的问题 电脑与网络
crystal1016发表评论于2008/4/29 21:02:02 |
你好,我现在遇到了与你同样的问题,报错都是类似的!在网上找了好多资料都没法解决,请务必帮帮我,很急,非常感谢你!不过用你的方法还是没有用,请问你rsh是如何配置的,都配置了那些文件。我装的mpich1.2.7,并行程序可编译,不可运行。每次运行mpirun 时报错:[crystal@localhost mpiprg]$ mpicc -o simpleio simpleio.c[crystal@localhost mpiprg]$ mpirun -np 2 simpleiolocalhost.localdomain: Connection refusedp0_19117: p4_error: Child process exited while making connection to remote process on localhost.localdomain: 0p0_19117: (33.004734) net_send: could not write to fd=4, errno = 32为方便联系,请加我的QQ:375434915再次感谢! |
|
» 1 »
|