24小时热门版块排行榜    

查看: 4384  |  回复: 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
--------------------------------------------------------------------------
回复此楼
已阅   回复此楼   关注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的回帖
查看全部 6 个回答

souledge

专家顾问 (著名写手)

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

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

思想重于技巧,内涵重于表象
2楼2016-12-12 00:10:31
已阅   回复此楼   关注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的回帖

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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 投票:  有多少人是今天查系统知道结果的? +17 爱看书的可乐 2026-08-26 19/950 2026-08-30 22:24 by xiangy672
[基金申请] 国社科又开始会评了,不知道这次命运如何 +5 雨打竹帘 2026-08-30 9/450 2026-08-30 22:23 by 余韵清
[基金申请] 能否申诉? +4 echo8914667 2026-08-30 5/250 2026-08-30 21:11 by echo8914667
[基金申请] 为什么到现在没收到通知? +5 tannykie 2026-08-29 5/250 2026-08-30 21:05 by purplejack
[基金申请] 有没有仍没收到信息的 +7 德尚中行 2026-08-27 8/400 2026-08-30 20:52 by purplejack
[考博] 找导师 +6 yuanjiabao 2026-08-29 7/350 2026-08-30 14:40 by 生科新手
[基金申请] 麻烦专家们看看评委们的意见(F口面上) +6 gdd2018 2026-08-28 11/550 2026-08-30 08:58 by 超级无敌华子
[基金申请] 国自然评审意见 +13 wangmingqi 2026-08-28 19/950 2026-08-29 10:22 by Poppy1104
[基金申请] 基金系统什么内容也没有 30+4 winsaint 2026-08-27 9/450 2026-08-28 11:06 by maolC
[基金申请] 面上合作单位盖章 +5 ssyjh 2026-08-27 5/250 2026-08-27 20:50 by gdfollow
[文学芳草园] 梦想 +3 myrtle 2026-08-26 3/150 2026-08-27 10:01 by angelyueyi
[基金申请] 为什么 国际(地区)合作与交流项目 没有放榜? 10+3 majunge000 2026-08-26 11/550 2026-08-27 08:42 by 北京莱茵编辑
[基金申请] 能否退出参与的面上项目解除限项 +23 koalala 2026-08-24 26/1300 2026-08-26 14:29 by 宝贝虫子
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 国合可查了 +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[基金申请] 国合现在查不到了吗? +10 chengyan1220 2026-08-24 20/1000 2026-08-26 08:57 by peasantsprig
[基金申请] 在坚冰还盖着北海的时候,我看到了怒放的梅花。 (金币+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
[基金申请] 如果此刻你正在为国基感到焦虑,不妨来听听这首《基金之外》 +8 scalable 2026-08-24 8/400 2026-08-25 12:52 by jnhyjjm
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
信息提示
请填处理意见