| 6 | 1/1 | 返回列表 |
| 查看: 4196 | 回復(fù): 5 | ||||
[求助]
個(gè)人電腦安裝openmpi,運(yùn)行并行程序出現(xiàn)錯(cuò)誤
|
|
通過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)行沒有問題,雙核就報(bào)錯(cuò)了,請問是什么原因???謝謝! 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)驗(yàn): +174 |

送紅花一朵 |
我開始不是用并行版的abinit,后改用以下命令編譯: ./configure --prefix=/home/abinit FC=mpif90 --enable-mpi=yes, 編譯過程報(bào)錯(cuò): 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, 編譯過程報(bào)錯(cuò): 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)驗(yàn): +174 |
|
可以是可以,但是相信解決方案比自己編譯OpenMPI再編譯Abinit要難得多的多,需要對編譯非常熟悉的人才可能搞定~如果這個(gè)功夫有了,就可以開始考慮編譯Windows版的并行程序了。 一般的思路,就是首先選定編譯器,比如GNU的,還是Intel的,還是PGI的,還是PathScale的,反正不管哪個(gè)都好,選擇好了之后,用該編譯器編譯OpenMPI并且設(shè)置環(huán)境變量。然后,用編譯出的OpenMPI中的mpif90,mpicc,mpicxx等并行編譯器(其實(shí)本質(zhì)上還是上述編譯器中選定的那一種)來編譯Abinit。這也就是平時(shí)大家說的用XXX編譯器做的并行編譯。 |

| 6 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 269專碩求調(diào)劑 +6 | 金恩貝 2026-03-21 | 6/300 |
|
|---|---|---|---|---|
|
[考研] 354求調(diào)劑 +7 | Tyoumou 2026-03-18 | 10/500 |
|
|
[考研] 0703化學(xué)297求調(diào)劑 +3 | Daisy☆ 2026-03-20 | 3/150 |
|
|
[考研] 311求調(diào)劑 +3 | 勇敢的小吳 2026-03-20 | 3/150 |
|
|
[考研] 一志愿重慶大學(xué)085700資源與環(huán)境總分308求調(diào)劑 +7 | 墨墨漠 2026-03-20 | 7/350 |
|
|
[考研] 265求調(diào)劑 +12 | 梁梁校校 2026-03-19 | 14/700 |
|
|
[考研] 316求調(diào)劑 +6 | 梁茜雯 2026-03-19 | 6/300 |
|
|
[考研] 307求調(diào)劑 +3 | wyyyqx 2026-03-17 | 3/150 |
|
|
[考研] 307求調(diào)劑 +10 | 冷笙123 2026-03-17 | 10/500 |
|
|
[考研] 一志愿南昌大學(xué),327分,材料與化工085600 +9 | Ncdx123456 2026-03-19 | 9/450 |
|
|
[考研] 材料與化工專碩調(diào)劑 +7 | heming3743 2026-03-16 | 7/350 |
|
|
[考研] 求調(diào)劑 +3 | 暗涌afhb 2026-03-16 | 3/150 |
|
|
[考研] 288求調(diào)劑,一志愿華南理工大學(xué)071005 +5 | ioodiiij 2026-03-17 | 5/250 |
|
|
[考研] 286求調(diào)劑 +6 | lemonzzn 2026-03-16 | 10/500 |
|
|
[考研] 收復(fù)試調(diào)劑生 +4 | 雨后秋荷 2026-03-18 | 4/200 |
|
|
[考研] 290求調(diào)劑 +3 | p asserby. 2026-03-15 | 4/200 |
|
|
[論文投稿] 有沒有大佬發(fā)小論文能帶我個(gè)二作 +3 | 增銳漏人 2026-03-17 | 4/200 |
|
|
[考研] 333求調(diào)劑 +3 | 文思客 2026-03-16 | 7/350 |
|
|
[考研] 321求調(diào)劑 +5 | 大米飯! 2026-03-15 | 5/250 |
|
|
[考研] 070300化學(xué)學(xué)碩求調(diào)劑 +6 | 太想進(jìn)步了0608 2026-03-16 | 6/300 |
|