| 查看: 4137 | 回复: 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朵)
» 猜你喜欢
基金申报
已经有6人回复
存款400万可以在学校里躺平吗
已经有6人回复
推荐一本书
已经有13人回复
拟解决的关键科学问题还要不要写
已经有5人回复
基金委咋了?2026年的指南还没有出来?
已经有9人回复
国自然申请面上模板最新2026版出了吗?
已经有17人回复
纳米粒子粒径的测量
已经有8人回复
疑惑?
已经有5人回复
计算机、0854电子信息(085401-058412)调剂
已经有5人回复
Materials Today Chemistry审稿周期
已经有5人回复
» 本主题相关价值贴推荐,对您同样有帮助:
《excel2010应用大全》【转载】
已经有10人回复
QCode2(电脑与手机二维码快传文件)、VarieDrop、Desktop List View
已经有3人回复
【分享】U盘启动装系统的操作方法(U盘PE启动安装GHOST XP)【已搜索无重复】
已经有46人回复
souledge
专家顾问 (著名写手)
-

专家经验: +174 - 1ST强帖: 19
- 应助: 303 (大学生)
- 金币: 11306.4
- 散金: 1123
- 红花: 108
- 帖子: 2814
- 在线: 916.1小时
- 虫号: 941486
- 注册: 2010-01-12
- 专业: 结构陶瓷
- 管辖: 第一性原理

2楼2016-12-12 00:10:31
送红花一朵 |
我开始不是用并行版的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
送红花一朵 |
我开始不是用并行版的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
souledge
专家顾问 (著名写手)
-

专家经验: +174 - 1ST强帖: 19
- 应助: 303 (大学生)
- 金币: 11306.4
- 散金: 1123
- 红花: 108
- 帖子: 2814
- 在线: 916.1小时
- 虫号: 941486
- 注册: 2010-01-12
- 专业: 结构陶瓷
- 管辖: 第一性原理
|
可以是可以,但是相信解决方案比自己编译OpenMPI再编译Abinit要难得多的多,需要对编译非常熟悉的人才可能搞定~如果这个功夫有了,就可以开始考虑编译Windows版的并行程序了。 一般的思路,就是首先选定编译器,比如GNU的,还是Intel的,还是PGI的,还是PathScale的,反正不管哪个都好,选择好了之后,用该编译器编译OpenMPI并且设置环境变量。然后,用编译出的OpenMPI中的mpif90,mpicc,mpicxx等并行编译器(其实本质上还是上述编译器中选定的那一种)来编译Abinit。这也就是平时大家说的用XXX编译器做的并行编译。 |
» 本帖已获得的红花(最新10朵)

5楼2016-12-12 23:11:22
6楼2017-01-13 16:31:42











回复此楼