| 5 | 1/1 | 返回列表 |
| 查看: 683 | 回復: 4 | |||
yxie3189至尊木蟲 (正式寫手)
|
[交流]
【求助】在其它節(jié)點上編譯的程序在新節(jié)點上不能運行 已有2人參與
|
|
在其它節(jié)點上編譯的并行程序在新節(jié)點上不能運行,出現(xiàn)如下錯誤: p0_13461: p4_error: Child process exited while making connection to remote process on node142: 0 望高手幫忙! |
金蟲 (正式寫手)
至尊木蟲 (正式寫手)
至尊木蟲 (正式寫手)
|
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 這個程序編譯結(jié)果如下: [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]$ |
至尊木蟲 (正式寫手)
|
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等節(jié)點上運行正常,得到結(jié)果如下: 編譯:mpif77 -o test_gather test_gather.f 運行: mpiexec -n 3 ./test_gather 結(jié)果如下: 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節(jié)點上,結(jié)果如下: [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]$ 大家?guī)臀铱词遣皇悄苡惺裁崔k法解決? |
| 5 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 277材料科學與工程080500求調(diào)劑 +7 | 自由煎餅果子 2026-03-16 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 293求調(diào)劑 +12 | zjl的號 2026-03-16 | 17/850 |
|
|
[考研] 一志愿 西北大學 ,070300化學學碩,總分287,雙非一本,求調(diào)劑。 +3 | 晨昏線與星海 2026-03-20 | 3/150 |
|
|
[考研] 能源材料化學課題組招收碩士研究生8-10名 +5 | 脫穎而出 2026-03-16 | 17/850 |
|
|
[考研] 260求調(diào)劑 +3 | 朱芷琳 2026-03-20 | 4/200 |
|
|
[考研] 384求調(diào)劑 +3 | 子系博 2026-03-22 | 4/200 |
|
|
[考研] 資源與環(huán)境 調(diào)劑申請(333分) +5 | holy J 2026-03-21 | 5/250 |
|
|
[考研] 296求調(diào)劑 +4 | www_q 2026-03-20 | 4/200 |
|
|
[考研] 材料與化工(0856)304求 B區(qū) 調(diào)劑 +3 | 邱gl 2026-03-21 | 3/150 |
|
|
[考研] 083200學碩321分一志愿暨南大學求調(diào)劑 +3 | innocenceF 2026-03-17 | 3/150 |
|
|
[考研] 一志愿西南交大,求調(diào)劑 +5 | 材化逐夢人 2026-03-18 | 5/250 |
|
|
[考研] 一志愿蘇州大學材料求調(diào)劑,總分315(英一) +5 | sbdksD 2026-03-19 | 5/250 |
|
|
[考研] 350求調(diào)劑 +5 | weudhdk 2026-03-19 | 5/250 |
|
|
[考研] 中南大學化學學碩337求調(diào)劑 +3 | niko- 2026-03-19 | 6/300 |
|
|
[考研] 求調(diào)劑 +3 | eation27 2026-03-20 | 3/150 |
|
|
[考研] 環(huán)境工程調(diào)劑 +9 | 大可digkids 2026-03-16 | 9/450 |
|
|
[論文投稿]
申請回稿延期一個月,編輯同意了。但系統(tǒng)上的時間沒變,給編輯又寫郵件了,沒回復
10+3
|
wangf9518 2026-03-17 | 4/200 |
|
|
[考研] 材料學碩318求調(diào)劑 +5 | February_Feb 2026-03-19 | 5/250 |
|
|
[考研] 328求調(diào)劑,英語六級551,有科研經(jīng)歷 +4 | 生物工程調(diào)劑 2026-03-16 | 12/600 |
|
|
[考研] 材料專碩306英一數(shù)二 +10 | z1z2z3879 2026-03-16 | 13/650 |
|