计算化学公社

 找回密码 Forget password
 注册 Register
Views: 10067|回复 Reply: 11
打印 Print 上一主题 Last thread 下一主题 Next thread

[ORCA] 求助:安装ORCA4.2.1和openmpi3.1.4后并行运行出错

[复制链接 Copy URL]

7

帖子

0

威望

189

eV
积分
196

Level 3 能力者

本帖最后由 zhaoyanfei 于 2020-10-19 15:43 编辑

我是在win10中安装的linux子系统(Ubuntu18.04LTS)
然后安装openmpi-3.1.4和orca_4_2_1
(在计算化学公社论坛中ORCA百度网盘链接中下载的压缩包openmpi-3.1.4.tar.gz和orca_4_2_1_linux_x86-64_shared_openmpi314.tar.xz

一,openmpi版本问题
按照 http://bbs.keinsci.com/thread-11697-1-1.html 安装OpenMPI-3.1.4,但是输入mpiexec -V后,显示版本为2.1.1
mpiexec (OpenRTE) 2.1.1

Report bugs to http://www.open-mpi.org/community/help/



二,ORCA运行算例报错
输入文件test.inp
! BLYP D3 def2-TZVP def2/J noautostart miniprint nopop
%maxcore 2000
%pal nprocs  1 end
* xyz 0 1
C                  0.00000000    0.00000000   -0.56221066
H                  0.00000000   -0.92444767   -1.10110537
H                 -0.00000000    0.92444767   -1.10110537
O                  0.00000000    0.00000000    0.69618930
*


设置"%pal nprocs  1 end"可以正常运算输出无错误,但是大于1个核就会报错

/home/zyf/orca_4_2_1_linux_x86-64_shared_openmpi314/orca_gtoint_mpi: error while loading shared libraries: libmpi.so.40: cannot open shared object file: No such file or directory
/home/zyf/orca_4_2_1_linux_x86-64_shared_openmpi314/orca_gtoint_mpi: error while loading shared libraries: libmpi.so.40: cannot open shared object file: No such file or directory
/home/zyf/orca_4_2_1_linux_x86-64_shared_openmpi314/orca_gtoint_mpi: error while loading shared libraries: libmpi.so.40: cannot open shared object file: No such file or directory
/home/zyf/orca_4_2_1_linux_x86-64_shared_openmpi314/orca_gtoint_mpi: error while loading shared libraries: libmpi.so.40: cannot open shared object file: No such file or directory
[file orca_tools/qcmsg.cpp, line 458]:
  .... aborting the run




输出文件中报错如下:

-------------------------------------------------------
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: [[10344,1],0]
  Exit code:    127
--------------------------------------------------------------------------

ORCA finished by error termination in GTOInt
Calling Command: mpirun -np 4  /home/zyf/orca_4_2_1_linux_x86-64_shared_openmpi314/orca_gtoint_mpi test.int.tmp test
[file orca_tools/qcmsg.cpp, line 458]:
  .... aborting the run

个人不太懂这些,不知道是不是因为openmpi没装好,请老师同学指点帮忙。




捕获2.PNG (11.7 KB, 下载次数 Times of downloads: 22)

2.环境变量

2.环境变量

捕获1.PNG (10.72 KB, 下载次数 Times of downloads: 49)

1.openmpi版本

1.openmpi版本

4289

帖子

4

威望

9534

eV
积分
13903

Level 6 (一方通行)

MOKIT开发者

2#
发表于 Post on 2020-10-19 15:48:19 | 只看该作者 Only view this author
把$PATH和$LD_LIBRARY_PATH调到行尾,再运行你贴的这些命令看看
自动做多参考态计算的程序MOKIT

7

帖子

0

威望

189

eV
积分
196

Level 3 能力者

3#
 楼主 Author| 发表于 Post on 2020-10-19 16:04:48 | 只看该作者 Only view this author
zjxitcc 发表于 2020-10-19 15:48
把$PATH和$LD_LIBRARY_PATH调到行尾,再运行你贴的这些命令看看

还是不行,结果和上边的一样。。。

4289

帖子

4

威望

9534

eV
积分
13903

Level 6 (一方通行)

MOKIT开发者

4#
发表于 Post on 2020-10-19 16:10:20 | 只看该作者 Only view this author
zhaoyanfei 发表于 2020-10-19 16:04
还是不行,结果和上边的一样。。。

你当前系统自带MPI 2.1.1,所以which出来会是那样子的,不是想要的3.1.4版本。

你把改完了的~/.bashrc内容贴上来,光说也不知道你有没改对。另外,执行
ls /home/zyf/openmpi-3.1.4/bin
ls /home/zyf/openmpi-3.1.4/lib
证明你对应目录里确实有可执行文件和动态库文件存在。
自动做多参考态计算的程序MOKIT

7

帖子

0

威望

189

eV
积分
196

Level 3 能力者

5#
 楼主 Author| 发表于 Post on 2020-10-19 17:12:23 | 只看该作者 Only view this author
zjxitcc 发表于 2020-10-19 16:10
你当前系统自带MPI 2.1.1,所以which出来会是那样子的,不是想要的3.1.4版本。

你把改完了的~/.bashrc ...

这是改完后的路径
### openmpi 3.1.4 ###
export PATH=/home/zyf/openmpi-3.1.4/bin:$PATH
export LD_LIBRARY_PATH=/home/zyf/openmpi-3.1.4/lib:$LD_LIBRARY_PATH

### orca 4.2.1 ###
export PATH=/home/zyf/orca_4_2_1_linux_x86-64_shared_openmpi314:$PATH
export LD_LIBRARY_PATH=/home/zyf/orca_4_2_1_linux_x86-64_shared_openmpi314:$LD_LIBRARY_PATH
alias orca='/home/zyf/orca_4_2_1_linux_x86-64_shared_openmpi314/orca'

然后用给您说的ls命令确实没有查到可执行文件,所以是没有装上吧。我又新建了一个文件夹重新编译
“./configure --prefix=/home/zyf/openmpi314/openmpi-3.1.4 --disable-builtin-atomics”

但是卡到了这个部分:
============================================================================
== Modular Component Architecture (MCA) setup
============================================================================
checking for subdir args...  '--prefix=/home/zyf/openmpi314/openmpi-3.1.4' '--disable-builtin-atomics'
checking --with-verbs value... simple ok (unspecified value)
checking --with-verbs-libdir value... simple ok (unspecified value)
checking for pkg-config... no
checking for pkg-config... no
checking for X... no

==> Pre-emptively configuring the hwloc framework to satisfy dependencies.
checking whether to enable hwloc PCI device support... yes (default)

+++ Configuring MCA framework hwloc
checking for no configure components in framework hwloc...
checking for m4 configure components in framework hwloc... external, hwloc1117

--- MCA component hwloc:external (m4 configuration macro, priority 90)
checking for MCA component hwloc:external compile mode... static
checking if MCA component hwloc:external can compile... no

--- MCA component hwloc:hwloc1117 (m4 configuration macro, priority 90)
checking for MCA component hwloc:hwloc1117 compile mode... static
checking hwloc building mode... embedded
configure: hwloc builddir: /home/zyf/openmpi314/openmpi-3.1.4/opal/mca/hwloc/hwloc1117/hwloc
configure: hwloc srcdir: /home/zyf/openmpi314/openmpi-3.1.4/opal/mca/hwloc/hwloc1117/hwloc
checking for hwloc version... ./configure: line 76789: /home/zyf/openmpi314/openmpi-3.1.4/opal/mca/hwloc/hwloc1117/hwloc/config/hwloc_get_version.sh: Permission denied
configure: error: Cannot continue

之前也是,每次都卡在这里。。

4289

帖子

4

威望

9534

eV
积分
13903

Level 6 (一方通行)

MOKIT开发者

6#
发表于 Post on 2020-10-19 17:21:59 | 只看该作者 Only view this author
zhaoyanfei 发表于 2020-10-19 17:12
这是改完后的路径
### openmpi 3.1.4 ###
export PATH=/home/zyf/openmpi-3.1.4/bin:$PATH

那你这连openmpi都没编译成功,更别提后面的步骤了。

你的openmpi压缩包不要在windows下解压,在子系统里 用命令行 解压。
自动做多参考态计算的程序MOKIT

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

7#
发表于 Post on 2020-10-19 17:53:25 | 只看该作者 Only view this author
zhaoyanfei 发表于 2020-10-19 17:12
这是改完后的路径
### openmpi 3.1.4 ###
export PATH=/home/zyf/openmpi-3.1.4/bin:$PATH

看最后一句啊!
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

1万

帖子

0

威望

9854

eV
积分
22088

Level 6 (一方通行)

8#
发表于 Post on 2020-10-19 19:50:31 | 只看该作者 Only view this author
本帖最后由 wzkchem5 于 2020-10-19 19:51 编辑
zhaoyanfei 发表于 2020-10-19 17:12
这是改完后的路径
### openmpi 3.1.4 ###
export PATH=/home/zyf/openmpi-3.1.4/bin:$PATH

检查你有没有执行/home/zyf/openmpi314/openmpi-3.1.4/opal/mca/hwloc/hwloc1117/hwloc/config/hwloc_get_version.sh的权限。哪怕你不认识permission是什么意思,不认识denied是什么意思,好歹你查一查啊,别看到输出信息是英文的就不尝试去理解,一股脑丢到论坛上问别人,期望别人给你现成的答案
Zikuan Wang
山东大学光学高等研究中心 研究员
BDF(https://bdf-manual.readthedocs.io/zh_CN/latest/Introduction.html)、ORCA(https://orcaforum.kofo.mpg.de/index.php)开发团队成员
Google Scholar: https://scholar.google.com/citations?user=XW6C6eQAAAAJ
ORCID: https://orcid.org/0000-0002-4540-8734
主页:http://www.qitcs.qd.sdu.edu.cn/info/1133/1776.htm
GitHub:https://github.com/wzkchem5
本团队长期招收研究生,有意者可私信联系

7

帖子

0

威望

189

eV
积分
196

Level 3 能力者

9#
 楼主 Author| 发表于 Post on 2020-10-19 20:24:02 | 只看该作者 Only view this author
zjxitcc 发表于 2020-10-19 17:21
那你这连openmpi都没编译成功,更别提后面的步骤了。

你的openmpi压缩包不要在windows下解压,在子系 ...

感谢帮助,已经编译好了~

7

帖子

0

威望

189

eV
积分
196

Level 3 能力者

10#
 楼主 Author| 发表于 Post on 2020-10-19 20:32:08 | 只看该作者 Only view this author
wzkchem5 发表于 2020-10-19 19:50
检查你有没有执行/home/zyf/openmpi314/openmpi-3.1.4/opal/mca/hwloc/hwloc1117/hwloc/config/hwloc_get ...

是的了,因为直接在Windows文件夹里解压的,要给权限。另外之前的环境配置也有点小问题,已解决,多谢回复~

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

11#
发表于 Post on 2020-10-19 20:43:50 | 只看该作者 Only view this author
抛弃微软那个残废系统,你根本遇不到这些问题。

用微软那个残废系统和附带的子系统,
就是给自己挖坑。
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

6万

帖子

99

威望

6万

eV
积分
125126

管理员

公社社长

12#
发表于 Post on 2020-10-19 23:30:49 | 只看该作者 Only view this author
windows就直接用windows版ORCA多好,何必用子系统,本身这还会损失一定性能
北京科音自然科学研究中心http://www.keinsci.com)致力于计算化学的发展和传播,长期开办极高质量的各种计算化学类培训:初级量子化学培训班中级量子化学培训班高级量子化学培训班量子化学波函数分析与Multiwfn程序培训班分子动力学与GROMACS培训班CP2K第一性原理计算培训班,内容介绍以及往届资料购买请点击相应链接查看。这些培训是计算化学从零快速入门以及进一步全面系统性提升研究水平的高速路!培训各种常见问题见《北京科音办的培训班FAQ》
欢迎加入北京科音微信公众号获取北京科音培训的最新消息,并避免错过网上有价值的计算化学文章!
欢迎加入人气极高、专业性特别强的理论与计算化学综合交流群思想家公社QQ群(群号见此链接),合计达一万多人。北京科音培训班的学员在群中可申请VIP头衔,提问将得到群主Sobereva的最优先解答。
思想家公社的门口Blog:http://sobereva.com(发布大量原创计算化学相关博文)
Multiwfn主页:http://sobereva.com/multiwfn(十分强大、极为流行的量子化学波函数分析程序)
Google Scholar:https://scholar.google.com/citations?user=tiKE0qkAAAAJ
ResearchGate:https://www.researchgate.net/profile/Tian_Lu

本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-18 12:33 , Processed in 0.177815 second(s), 23 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list