| 6 | 1/1 | 返回列表 |
| 查看: 4197 | 回復(fù): 5 | ||||
[求助]
個人電腦安裝openmpi,運(yùn)行并行程序出現(xiàn)錯誤
|
|
通過yum命令安裝openmpi: yum install openmpi openmpi-devel 然后配制環(huán)境變量 export PATH=$PATH:/usr/lib64/openmpi/bin export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib 運(yùn)行abinit: mpirun -np 2 abinit<t1x.files>log & 單核運(yùn)行沒有問題,雙核就報錯了,請問是什么原因???謝謝! log文件: ------------------------------------------------------- Primary job terminated normally, but 1 process returned a non-zero exit code.. Per user-direction, the job has been aborted. ------------------------------------------------------- -------------------------------------------------------------------------- mpirun detected that one or more processes exited with non-zero status, thus causing the job to be terminated. The first process to do so was: Process name: [[56854,1],1] Exit code: 2 -------------------------------------------------------------------------- |
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗: +174 |

送紅花一朵 |
我開始不是用并行版的abinit,后改用以下命令編譯: ./configure --prefix=/home/abinit FC=mpif90 --enable-mpi=yes, 編譯過程報錯: checking whether to enable OpenMP support... no checking whether to build MPI code... yes checking whether the C compiler supports MPI... no checking whether the C++ compiler supports MPI... no checking whether the Fortran Compiler supports MPI... no checking whether MPI is usable... no configure: error: MPI support is broken - please fix your config parameters and/or MPI installation 請問可以用yum命令安裝openmpi,并編譯并行版的abinit嗎? http://www.gaoyang168.com/html/201405/7409996.html |
送紅花一朵 |
我開始不是用并行版的abinit,后改用以下命令編譯: ./configure --prefix=/home/abinit FC=mpif90 --enable-mpi=yes, 編譯過程報錯: checking whether to enable OpenMP support... no checking whether to build MPI code... yes checking whether the C compiler supports MPI... no checking whether the C++ compiler supports MPI... no checking whether the Fortran Compiler supports MPI... no checking whether MPI is usable... no configure: error: MPI support is broken - please fix your config parameters and/or MPI installation 請問可以用yum命令安裝openmpi,并編譯并行版的abinit嗎? http://www.gaoyang168.com/html/201405/7409996.html |
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗: +174 |
|
可以是可以,但是相信解決方案比自己編譯OpenMPI再編譯Abinit要難得多的多,需要對編譯非常熟悉的人才可能搞定~如果這個功夫有了,就可以開始考慮編譯Windows版的并行程序了。 一般的思路,就是首先選定編譯器,比如GNU的,還是Intel的,還是PGI的,還是PathScale的,反正不管哪個都好,選擇好了之后,用該編譯器編譯OpenMPI并且設(shè)置環(huán)境變量。然后,用編譯出的OpenMPI中的mpif90,mpicc,mpicxx等并行編譯器(其實本質(zhì)上還是上述編譯器中選定的那一種)來編譯Abinit。這也就是平時大家說的用XXX編譯器做的并行編譯。 |

| 6 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 289材料與化工(085600)B區(qū)求調(diào)劑 +3 | 這么名字咋樣 2026-03-22 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 一志愿北京化工大學(xué) 070300 學(xué)碩 336分 求調(diào)劑 +3 | vv迷 2026-03-22 | 3/150 |
|
|
[考研]
|
2117205181 2026-03-21 | 7/350 |
|
|
[考研] 070300化學(xué)求調(diào)劑 +3 | 苑豆豆 2026-03-20 | 3/150 |
|
|
[考研] 291 求調(diào)劑 +3 | 化工2026屆畢業(yè)?/a> 2026-03-21 | 3/150 |
|
|
[考研] 資源與環(huán)境 調(diào)劑申請(333分) +5 | holy J 2026-03-21 | 5/250 |
|
|
[考研] 材料學(xué)碩301分求調(diào)劑 +7 | Liyouyumairs 2026-03-21 | 7/350 |
|
|
[考研] 初試 317 +7 | 半拉月丙 2026-03-20 | 7/350 |
|
|
[考研] 化學(xué)調(diào)劑 +5 | yzysaa 2026-03-21 | 5/250 |
|
|
[考研]
|
Grand777 2026-03-21 | 3/150 |
|
|
[考研] 297求調(diào)劑 +3 | 喜歡還是不甘心 2026-03-20 | 3/150 |
|
|
[考研] 求調(diào)劑 +3 | 13341 2026-03-20 | 3/150 |
|
|
[考研] 303求調(diào)劑 +5 | 睿08 2026-03-17 | 7/350 |
|
|
[考研] 華東師范大學(xué)-071000生物學(xué)-293分-求調(diào)劑 +3 | 研究生何瑤明 2026-03-18 | 3/150 |
|
|
[考研] 一志愿 西北大學(xué) ,070300化學(xué)學(xué)碩,總分287,雙非一本,求調(diào)劑。 +3 | 晨昏線與星海 2026-03-18 | 3/150 |
|
|
[考研] 材料專碩英一數(shù)二306 +7 | z1z2z3879 2026-03-18 | 7/350 |
|
|
[考研] 308求調(diào)劑 +3 | 阿姐阿姐家啊 2026-03-18 | 3/150 |
|
|
[考研] 350求調(diào)劑 +5 | weudhdk 2026-03-19 | 5/250 |
|
|
[考研] 0817 化學(xué)工程 299分求調(diào)劑 有科研經(jīng)歷 有二區(qū)文章 +22 | rare12345 2026-03-18 | 22/1100 |
|
|
[考研] 考研調(diào)劑 +3 | 淇ya_~ 2026-03-17 | 5/250 |
|