| 5 | 1/1 | 返回列表 |
| 查看: 680 | 回復(fù): 4 | |||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | |||
yxie3189至尊木蟲 (正式寫手)
|
[交流]
【求助】在其它節(jié)點(diǎn)上編譯的程序在新節(jié)點(diǎn)上不能運(yùn)行 已有2人參與
|
||
|
在其它節(jié)點(diǎn)上編譯的并行程序在新節(jié)點(diǎn)上不能運(yùn)行,出現(xiàn)如下錯(cuò)誤: 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 這個(gè)程序編譯結(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 該測(cè)試程序在45,46等節(jié)點(diǎn)上運(yùn)行正常,得到結(jié)果如下: 編譯:mpif77 -o test_gather test_gather.f 運(yùn)行: 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é)點(diǎn)上,結(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法解決? |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 284求調(diào)劑 +5 | Zhao anqi 2026-03-22 | 5/250 |
|
|---|---|---|---|---|
|
[考研] 289求調(diào)劑 +7 | 懷瑾握瑜l 2026-03-20 | 7/350 |
|
|
[考研] 319求調(diào)劑 +4 | 小力氣珂珂 2026-03-20 | 4/200 |
|
|
[考研] 求調(diào)劑 +5 | Zhangbod 2026-03-21 | 7/350 |
|
|
[考研] 0856材料專碩353求調(diào)劑 +4 | NIFFFfff 2026-03-20 | 4/200 |
|
|
[基金申請(qǐng)] 山東省面上項(xiàng)目限額評(píng)審 +4 | 石瑞0426 2026-03-19 | 4/200 |
|
|
[考研] 一志愿華中科技大學(xué)071000,求調(diào)劑 +4 | 沿岸有貝殼6 2026-03-21 | 4/200 |
|
|
[考研] 280求調(diào)劑 +11 | 咕嚕曉曉 2026-03-18 | 12/600 |
|
|
[考研] 材料學(xué)碩301分求調(diào)劑 +7 | Liyouyumairs 2026-03-21 | 7/350 |
|
|
[考研] 一志愿深大,0703化學(xué),總分302,求調(diào)劑 +4 | 七月-七七 2026-03-21 | 4/200 |
|
|
[考研] 材料學(xué)碩333求調(diào)劑 +3 | 北道巷 2026-03-18 | 3/150 |
|
|
[考研] 266求調(diào)劑 +3 | 哇呼哼呼哼 2026-03-20 | 3/150 |
|
|
[考研] 初始318分求調(diào)劑(有工作經(jīng)驗(yàn)) +3 | 1911236844 2026-03-17 | 3/150 |
|
|
[考研] 265求調(diào)劑 +9 | 梁梁校校 2026-03-17 | 9/450 |
|
|
[考研] 一志愿 西北大學(xué) ,070300化學(xué)學(xué)碩,總分287,雙非一本,求調(diào)劑。 +3 | 晨昏線與星海 2026-03-18 | 3/150 |
|
|
[考研] 294求調(diào)劑材料與化工專碩 +15 | 陌の森林 2026-03-18 | 15/750 |
|
|
[考研] 一志愿西安交通大學(xué) 學(xué)碩 354求調(diào)劑211或者雙一流 +3 | 我想要讀研究生 2026-03-20 | 3/150 |
|
|
[考研] 261求B區(qū)調(diào)劑,科研經(jīng)歷豐富 +3 | 牛奶很忙 2026-03-20 | 4/200 |
|
|
[考研] 081700化工學(xué)碩調(diào)劑 +3 | 【1】 2026-03-16 | 3/150 |
|
|
[考研] 344求調(diào)劑 +6 | knight344 2026-03-16 | 7/350 |
|