| 5 | 1/1 | 返回列表 |
| 查看: 684 | 回復(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 該測(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法解決? |
金蟲 (正式寫手)
至尊木蟲 (正式寫手)
至尊木蟲 (正式寫手)
|
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]$ |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研]
|
2117205181 2026-03-21 | 8/400 |
|
|---|---|---|---|---|
|
[考研] 317求調(diào)劑 +12 | 申子申申 2026-03-19 | 18/900 |
|
|
[考研] 北科281學(xué)碩材料求調(diào)劑 +6 | tcxiaoxx 2026-03-20 | 6/300 |
|
|
[考研] 08工科 320總分 求調(diào)劑 +11 | 梨花珞晚風(fēng) 2026-03-17 | 11/550 |
|
|
[考研] 一志愿中南化學(xué)(0703)總分337求調(diào)劑 +9 | niko- 2026-03-19 | 10/500 |
|
|
[考研] 生物學(xué)調(diào)劑 +5 | Surekei 2026-03-21 | 5/250 |
|
|
[考研] 318求調(diào)劑 +4 | plum李子 2026-03-21 | 7/350 |
|
|
[考研] 一志愿華中科技大學(xué)071000,求調(diào)劑 +4 | 沿岸有貝殼6 2026-03-21 | 4/200 |
|
|
[考研] 297求調(diào)劑 +3 | 喜歡還是不甘心 2026-03-20 | 3/150 |
|
|
[考研] 266求調(diào)劑 +3 | 哇呼哼呼哼 2026-03-20 | 3/150 |
|
|
[考研] 070300化學(xué)319求調(diào)劑 +7 | 錦鯉0909 2026-03-17 | 7/350 |
|
|
[考研] 化學(xué)求調(diào)劑 +4 | 臨澤境llllll 2026-03-17 | 5/250 |
|
|
[考研] 085700資源與環(huán)境308求調(diào)劑 +12 | 墨墨漠 2026-03-18 | 13/650 |
|
|
[考研]
|
.6lL 2026-03-18 | 8/400 |
|
|
[考研] 考研調(diào)劑求學(xué)校推薦 +3 | 伯樂29 2026-03-18 | 5/250 |
|
|
[考研] 329求調(diào)劑 +9 | 想上學(xué)吖吖 2026-03-19 | 9/450 |
|
|
[考研] 求調(diào)劑 +3 | 暗涌afhb 2026-03-16 | 3/150 |
|
|
[考研] 材料考研調(diào)劑 +3 | xwt。 2026-03-19 | 3/150 |
|
|
[考研] 344求調(diào)劑 +6 | knight344 2026-03-16 | 7/350 |
|
|
[考研] 070300化學(xué)學(xué)碩求調(diào)劑 +6 | 太想進(jìn)步了0608 2026-03-16 | 6/300 |
|