24小时热门版块排行榜    

查看: 4138  |  回复: 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的回帖
信息提示
请填处理意见