24小时热门版块排行榜    

查看: 4387  |  回复: 5
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

邹辉

银虫 (小有名气)

[求助] 个人电脑安装openmpi,运行并行程序出现错误

通过yum命令安装openmpi: yum install openmpi openmpi-devel
然后配制环境变量
export PATH=$PATH:/usr/lib64/openmpi/bin
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib
运行abinit:
mpirun -np 2 abinit<t1x.files>log &
单核运行没有问题,双核就报错了,请问是什么原因???谢谢!
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
--------------------------------------------------------------------------
回复此楼

» 本帖已获得的红花(最新10朵)

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

邹辉

银虫 (小有名气)

送红花一朵
引用回帖:
2楼: Originally posted by souledge at 2016-12-12 00:10:31
命令中,abinit和<之间的空格加了么?
Abinit是哪个版本?是用OpenMPI编译的并行版么?

我开始不是用并行版的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://muchong.com/html/201405/7409996.html
4楼2016-12-12 22:46:16
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 6 个回答

souledge

专家顾问 (著名写手)

命令中,abinit和<之间的空格加了么?
Abinit是哪个版本?是用OpenMPI编译的并行版么?

» 本帖已获得的红花(最新10朵)

思想重于技巧,内涵重于表象
2楼2016-12-12 00:10:31
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

邹辉

银虫 (小有名气)

送红花一朵
我开始不是用并行版的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://muchong.com/html/201405/7409996.html
3楼2016-12-12 22:45:43
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

souledge

专家顾问 (著名写手)

引用回帖:
4楼: Originally posted by 邹辉 at 2016-12-12 22:46:16
我开始不是用并行版的abinit,后改用以下命令编译:
./configure --prefix=/home/abinit FC=mpif90 --enable-mpi=yes,
编译过程报错:
checking whether to enable OpenMP support... no
checking whether to bui ...

可以是可以,但是相信解决方案比自己编译OpenMPI再编译Abinit要难得多的多,需要对编译非常熟悉的人才可能搞定~如果这个功夫有了,就可以开始考虑编译Windows版的并行程序了。
一般的思路,就是首先选定编译器,比如GNU的,还是Intel的,还是PGI的,还是PathScale的,反正不管哪个都好,选择好了之后,用该编译器编译OpenMPI并且设置环境变量。然后,用编译出的OpenMPI中的mpif90,mpicc,mpicxx等并行编译器(其实本质上还是上述编译器中选定的那一种)来编译Abinit。这也就是平时大家说的用XXX编译器做的并行编译。

» 本帖已获得的红花(最新10朵)

思想重于技巧,内涵重于表象
5楼2016-12-12 23:11:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[文学芳草园] 梦想 +4 myrtle 2026-08-26 4/200 2026-08-31 08:43 by 逸域隐帆
[基金申请] 中青基了要发朋友圈吗? +6 349506619 2026-08-28 6/300 2026-08-31 08:43 by kingkocxr
[基金申请] 基金不中,共勉 +12 eulota 2026-08-26 12/600 2026-08-31 08:42 by ZJTJZ
[基金申请] 为什么到现在没收到通知? +5 tannykie 2026-08-29 5/250 2026-08-30 21:05 by purplejack
[考博] 找导师 +6 yuanjiabao 2026-08-29 7/350 2026-08-30 14:40 by 生科新手
[基金申请] 我就是申请一个面上项目而已,这评审意见是按照杰青的条件评的吧? +6 gouxfjh 2026-08-28 11/550 2026-08-30 07:57 by gouxfjh
[基金申请] 国自然评审意见 +13 wangmingqi 2026-08-28 19/950 2026-08-29 10:22 by Poppy1104
[基金申请] 系统查不到 +11 董八千 2026-08-26 11/550 2026-08-28 18:06 by Leogzhya
[基金申请] 怎么查啊 +6 huang1991js 2026-08-26 6/300 2026-08-28 08:42 by winsaint
[基金申请] 面上合作单位盖章 +5 ssyjh 2026-08-27 5/250 2026-08-27 20:50 by gdfollow
[基金申请] 怎么看青基中了没有啊 +5 叶九微 2026-08-26 5/250 2026-08-27 10:35 by l_zh2008
[基金申请] 为什么 国际(地区)合作与交流项目 没有放榜? 10+3 majunge000 2026-08-26 11/550 2026-08-27 08:42 by 北京莱茵编辑
[基金申请] 我不理解! +15 Edward_pc 2026-08-26 23/1150 2026-08-26 20:34 by zzuzxg
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 系统进不去 +4 yanglien 2026-08-26 5/250 2026-08-26 11:10 by wenfengw83
[基金申请] 项目信息和经费信息在系统里都可以看到了 +6 wittyboy 2026-08-26 14/700 2026-08-26 10:55 by wittyboy
[基金申请] 今天务委会开完了,明天出结果吗 +19 angus9576 2026-08-25 23/1150 2026-08-26 10:03 by zp519
[基金申请] 在坚冰还盖着北海的时候,我看到了怒放的梅花。 (金币+10) +6 ziyangfang 2026-08-25 9/450 2026-08-25 20:26 by huagongfeihu
[基金申请] 某些机构,以效率低为荣,以效率低作为存在感 +9 yuleib84 2026-08-25 10/500 2026-08-25 17:14 by alexon
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
信息提示
请填处理意见