24小时热门版块排行榜    

查看: 671  |  回复: 4
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

yxie3189

至尊木虫 (正式写手)

[交流] 【求助】在其它节点上编译的程序在新节点上不能运行 已有2人参与

在其它节点上编译的并行程序在新节点上不能运行,出现如下错误:
p0_13461:  p4_error: Child process exited while making connection to remote process on node142: 0
望高手帮忙!
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yxie3189

至尊木虫 (正式写手)

program test_gather
        include 'mpif.h'

      integer numprocs,myid,ierr,a,b
      dimension a(3),b(9)
     
      call MPI_INIT(ierr)
      call MPI_COMM_RANK(MPI_COMM_WORLD,myid,ierr)
      call MPI_COMM_SIZE(MPI_COMM_WORLD,numprocs,ierr)
      print *,'process',myid,' is alive'

      do i=1,3
       a(i)=myid+1
      end do

      call MPI_GATHER(a,3,MPI_INTEGER,b,3,MPI_INTEGER,
                      0,MPI_COMM_WORLD,ierr)

     
      write(*,*)(a(i),i=1,3)

      if ( myid .eq. 0 ) then
          write(*,*) (b(i),i=1,9)
      endif
     
      call MPI_FINALIZE(ierr)

      end
这个程序编译结果如下:
[yxie@node169 yxie]$ mpif77 -O3 -o test test_gather.f
test_gather.f: In program `test_gather':
test_gather.f:16:
         call MPI_GATHER(a,3,MPI_INTEGER,b,3,MPI_INTEGER,
              1                                          2
Invalid token at (2) in expression or subexpression at (1)
test_gather.f:17:
                         0,MPI_COMM_WORLD,ierr)
                          ^
Statement at (^) begins with invalid token [info -f g77 M LEX]
[yxie@node169 yxie]$
4楼2010-05-28 22:43:00
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 5 个回答

wanglifei007

金虫 (正式写手)


yxie3189(金币+1): 2010-05-28 21:44:15
resonant(金币+1):欢迎参与讨论。 2010-05-28 21:57:32
是不是分配机群的时候限制可用的节点数了,你问一下你们的机群管理员吧。
2楼2010-05-28 20:21:45
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yxie3189

至尊木虫 (正式写手)

引用回帖:
Originally posted by wanglifei007 at 2010-05-28 20:21:45:
是不是分配机群的时候限制可用的节点数了,你问一下你们的机群管理员吧。

我看看吧
3楼2010-05-28 21:45:06
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yxie3189

至尊木虫 (正式写手)

program test_gather
        include 'mpif.h'
      integer numprocs,myid,ierr,a,b
      dimension a(3),b(9)
     
      call MPI_INIT(ierr)
      call MPI_COMM_RANK(MPI_COMM_WORLD,myid,ierr)
      call MPI_COMM_SIZE(MPI_COMM_WORLD,numprocs,ierr)
      print *,'process',myid,' is alive'
      do i=1,3
       a(i)=myid+1
      end do
      call MPI_GATHER(a,3,MPI_INTEGER,b,3,MPI_INTEGER,
     +                0,MPI_COMM_WORLD,ierr)
     
      write(*,*)(a(i),i=1,3)
      if ( myid .eq. 0 ) then
          write(*,*) (b(i),i=1,9)
      endif
     
      call MPI_FINALIZE(ierr)
      end
该测试程序在45,46等节点上运行正常,得到结果如下:
编译:mpif77 -o test_gather test_gather.f
运行: mpiexec -n 3 ./test_gather
结果如下:
process 0 is alive
process 2 is alive
process 1 is alive
2 2 2
1 1 1
1 1 1 2 2 2 3 3 3
3 3 3

在169节点上,结果如下:
[yxie@node169 yxie]$ mpiexec -n 3 ./test
process 0 is alive
1 1 1
1 1 1 50 5566888 0 0 0 0
process 0 is alive
1 1 1
1 1 1 50 5566888 0 0 0 0
process 0 is alive
1 1 1
1 1 1 50 5566888 0 0 0 0
[yxie@node169 yxie]$

大家帮我看是不是能有什么办法解决?
5楼2010-05-29 14:51:14
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 考研调剂 +4 来好运来来来 2026-03-21 4/200 2026-03-22 12:15 by 星空星月
[考研] 工科0856求调剂 +3 沐析汀汀 2026-03-21 3/150 2026-03-21 18:30 by 学员8dgXkO
[考研] 材料学硕333求调剂 +3 北道巷 2026-03-18 3/150 2026-03-21 18:17 by 学员8dgXkO
[考研] 求助 +5 梦里的无言 2026-03-21 6/300 2026-03-21 17:51 by 学员8dgXkO
[考研] 336求调剂 +5 rmc8866 2026-03-21 5/250 2026-03-21 17:24 by 学员8dgXkO
[考研] 求调剂 +3 .m.. 2026-03-21 4/200 2026-03-21 16:25 by barlinike
[考研] 279分求调剂 一志愿211 +14 chaojifeixia 2026-03-19 15/750 2026-03-21 13:24 by zhukairuo
[考研] 332求调剂 +3 凤凰院丁真 2026-03-20 3/150 2026-03-21 10:27 by luoyongfeng
[考研] 材料工程(专)一志愿985 初试335求调剂 +3 hiloiy 2026-03-17 4/200 2026-03-21 03:04 by JourneyLucky
[考研] 初始318分求调剂(有工作经验) +3 1911236844 2026-03-17 3/150 2026-03-21 02:33 by JourneyLucky
[考研] 274求调剂 +10 S.H1 2026-03-18 10/500 2026-03-20 23:51 by JourneyLucky
[考研] 材料专硕英一数二306 +7 z1z2z3879 2026-03-18 7/350 2026-03-20 23:48 by JourneyLucky
[考研] 一志愿南昌大学,327分,材料与化工085600 +9 Ncdx123456 2026-03-19 9/450 2026-03-20 23:41 by lovewei0727
[考研] 一志愿苏州大学材料求调剂,总分315(英一) +5 sbdksD 2026-03-19 5/250 2026-03-20 22:10 by luoyongfeng
[考研] 350求调剂 +5 weudhdk 2026-03-19 5/250 2026-03-20 22:04 by luoyongfeng
[考研] 材料与化工专硕调剂 +7 heming3743 2026-03-16 7/350 2026-03-20 19:31 by zhukairuo
[论文投稿] 申请回稿延期一个月,编辑同意了。但系统上的时间没变,给编辑又写邮件了,没回复 10+3 wangf9518 2026-03-17 4/200 2026-03-19 23:55 by babero
[考研] 一志愿福大288有机化学,求调剂 +3 小木虫200408204 2026-03-18 3/150 2026-03-19 13:31 by houyaoxu
[考研] 321求调剂 +5 大米饭! 2026-03-15 5/250 2026-03-16 16:33 by houyaoxu
[考研] 中科院材料273求调剂 +4 yzydy 2026-03-15 4/200 2026-03-16 15:59 by Gaodh_82
信息提示
请填处理意见