计算化学公社

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

[ORCA] 求助:第一次安装ORCA后第一次运行算例出错

[复制链接 Copy URL]

159

帖子

3

威望

1507

eV
积分
1726

Level 5 (御坂)

跳转到指定楼层 Go to specific reply
楼主
第一步:MPI库的安装
按照http://sobereva.com/451安装openmpi-3.1.4.tar.gz的库压缩包后,采用mpiexec -V命令查看版本,显示版本号如下。

liaorongbao@liaorongbao:~/ORCA$ mpiexec -V
Intel(R) MPI Library for Linux, 64-bit applications, Version 4.1  Build 20120831
Copyright (C) 2003-2012 Intel Corporation.  All rights reserved.

MPI库版本对应4.1,不知是否正确,为什么压缩包显示的3.1.4呢?我的机器大约一年前安装过intel的某些库,担心冲突,4.1会不会是一年前安装的什么东西造成的?

第二步:算例
安装MPI库后,安装了ORCA。似乎安装过程顺利。
Sob博文的输入文件名为test.inp, 内容如下
! BLYP def2-SVP noautostart miniprint pal4
* 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
*
在当前目录下执行命令liaorongbao@liaorongbao:~/ORCA$ orca test.inp
屏幕上显示:

                                 *****************
                                 * O   R   C   A *
                                 *****************

           --- An Ab Initio, DFT and Semiempirical electronic structure package ---

                  #######################################################
                  #                        -***-                        #
                  #          Department of theory and spectroscopy      #
                  #               Directorship: Frank Neese             #
                  #        Max Planck Institute fuer Kohlenforschung    #
                  #                Kaiser Wilhelm Platz 1               #
                  #                 D-45470 Muelheim/Ruhr               #
                  #                      Germany                        #
                  #                                                     #
                  #                  All rights reserved                #
                  #                        -***-                        #
                  #######################################################


                         Program Version 4.2.0 -  RELEASE  -
略去中间一大段显示内容,以下是出错信息
CARTESIAN COORDINATES (ANGSTROEM)
---------------------------------
  C      0.000000    0.000000   -0.562211
  H      0.000000   -0.924448   -1.101105
  H     -0.000000    0.924448   -1.101105
  O      0.000000    0.000000    0.696189

----------------------------
CARTESIAN COORDINATES (A.U.)
----------------------------
  NO LB      ZA    FRAG     MASS         X           Y           Z
   0 C     6.0000    0    12.011    0.000000    0.000000   -1.062424
   1 H     1.0000    0     1.008    0.000000   -1.746953   -2.080788
   2 H     1.0000    0     1.008   -0.000000    1.746953   -2.080788
   3 O     8.0000    0    15.999    0.000000    0.000000    1.315607

/opt/intel/composer_xe_2013.2.146/mpirt/bin/intel64/mpirun: 96: .: Can't open /opt/intel/composer_xe_2013.2.146/mpirt/bin/intel64/mpivars.sh

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

[file orca_tools/qcmsg.cpp, line 458]:
  .... aborting the run

liaorongbao@liaorongbao:~/ORCA$


毛病显示为:Can't open /opt/intel/composer_xe_2013.2.146/mpirt/bin/intel64/mpivars.sh
大概意思是无法打开mpivars.sh。大概一年前机器里面安装过intel的某些库的东西,不会是不是那个东西造成的







68

帖子

4

威望

1570

eV
积分
1718

Level 5 (御坂)

大鸭鸭

2#
发表于 Post on 2019-8-18 18:38:01 | 只看该作者 Only view this author
显然你的环境变量里面有intel并行库,这个intel并行库和你的openmpi撞车了
The leaping arc at your finger
is my faith and will eliminate never
Only the railgun will live forever

159

帖子

3

威望

1507

eV
积分
1726

Level 5 (御坂)

3#
 楼主 Author| 发表于 Post on 2019-8-18 18:41:03 | 只看该作者 Only view this author
linqiaosong 发表于 2019-8-18 18:38
显然你的环境变量里面有intel并行库,这个intel并行库和你的openmpi撞车了

完蛋啦,这个问题我最怕,估计得重新装机

68

帖子

4

威望

1570

eV
积分
1718

Level 5 (御坂)

大鸭鸭

4#
发表于 Post on 2019-8-18 18:49:07 | 只看该作者 Only view this author
liaorongbao 发表于 2019-8-18 18:41
完蛋啦,这个问题我最怕,估计得重新装机

不需要,把环境变量里的Intel并行库注释掉,配置好openmpi的环境变量,就可以了
The leaping arc at your finger
is my faith and will eliminate never
Only the railgun will live forever

159

帖子

3

威望

1507

eV
积分
1726

Level 5 (御坂)

5#
 楼主 Author| 发表于 Post on 2019-8-18 21:42:51 | 只看该作者 Only view this author
本帖最后由 liaorongbao 于 2019-8-18 21:48 编辑
linqiaosong 发表于 2019-8-18 18:49
不需要,把环境变量里的Intel并行库注释掉,配置好openmpi的环境变量,就可以了

第一部分:我的家目录的.bashrc的最关键部位按照楼上注释后如下(只复制了一部分)

# export PATH="$PATH":.
# export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr:$PATH
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/chen/bkd/IntelFortranCompiler/composer_xe_2013_sp1.1.106/mkl/lib/intel64
# export PATH="$PATH":/home/chen/bkd/IntelFortranCompiler/composer_xe_2013_sp1.1.106/bin/intel64
# export PATH="$PATH":/home/chen/bkd/IntelFortranCompiler/composer_xe_2013_sp1.1.106/mkl/bin/intel64

# #export PATH="$PATH":.
#export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr:$PATH
# #export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr:$PATH
# #export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013.2.146/mkl/lib/intel64
# #export PATH="$PATH":/opt/intel/composer_xe_2013.2.146/bin/intel64
# #export PATH="$PATH":/opt/intel/composer_xe_2013.2.146/mkl/bin/intel64


# #source /opt/intel/bin/compilervars.sh intel64

export PATH=$PATH:/home/liaorongbao/openmpi314/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/liaorongbao/openmpi314/lib


export PATH=$PATH:/home/liaorongbao/ORCA/orca_4_2_0_linux_x86-64_shared_openmpi314

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/liaorongbao/ORCA/orca_4_2_0_linux_x86-64_shared_openmpi314


alias orca='/home/liaorongbao/ORCA/orca_4_2_0_linux_x86-64_shared_openmpi314/orca'

第二部分:执行ORCA运行文件后出错如下
liaorongbao@liaorongbao:~/ORCA$ orca test.inp

                                 *****************
                                 * O   R   C   A *
                                 *****************

   此处被我省略一大段

----- AuxJ basis set information -----
Your calculation utilizes the auxiliary basis: def2/J
   F. Weigend, Phys. Chem. Chem. Phys. 8, 1057 (2006).

================================================================================
                                        WARNINGS
                       Please study these warnings very carefully!
================================================================================


INFO   : the flag for use of LIBINT has been found!

================================================================================
                                       INPUT FILE
================================================================================
NAME = test.inp
|  1> ! BLYP def2-SVP noautostart miniprint pal4
|  2> * xyz 0 1
|  3>  C                  0.00000000    0.00000000   -0.56221066
|  4>  H                  0.00000000   -0.92444767   -1.10110537
|  5>  H                 -0.00000000    0.92444767   -1.10110537
|  6>  O                  0.00000000    0.00000000    0.69618930
|  7> *
|  8>
   此处被我省略一段
| 24>
| 25>                          ****END OF INPUT****
================================================================================

                       ****************************
                       * Single Point Calculation *
                       ****************************

---------------------------------
CARTESIAN COORDINATES (ANGSTROEM)
---------------------------------
  C      0.000000    0.000000   -0.562211
  H      0.000000   -0.924448   -1.101105
  H     -0.000000    0.924448   -1.101105
  O      0.000000    0.000000    0.696189

----------------------------
CARTESIAN COORDINATES (A.U.)
----------------------------
  NO LB      ZA    FRAG     MASS         X           Y           Z
   0 C     6.0000    0    12.011    0.000000    0.000000   -1.062424
   1 H     1.0000    0     1.008    0.000000   -1.746953   -2.080788
   2 H     1.0000    0     1.008   -0.000000    1.746953   -2.080788
   3 O     8.0000    0    15.999    0.000000    0.000000    1.315607

--------------------------------------------------------------------------
There are not enough slots available in the system to satisfy the 4
slots that were requested by the application:

  /home/liaorongbao/ORCA/orca_4_2_0_linux_x86-64_shared_openmpi314/orca_gtoint_mpi

Either request fewer slots for your application, or make more slots
available for use.

A "slot" is the Open MPI term for an allocatable unit where we can
launch a process.  The number of slots available are defined by the
environment in which Open MPI processes are run:

  1. Hostfile, via "slots=N" clauses (N defaults to number of
     processor cores if not provided)
  2. The --host command line parameter, via a ":N" suffix on the
     hostname (N defaults to 1 if not provided)
  3. Resource manager (e.g., SLURM, PBS/Torque, LSF, etc.)
  4. If none of a hostfile, the --host command line parameter, or an
     RM is present, Open MPI defaults to the number of processor cores

In all the above cases, if you want Open MPI to default to the number
of hardware threads instead of the number of processor cores, use the
--use-hwthread-cpus option.

Alternatively, you can use the --oversubscribe option to ignore the
number of available slots when deciding the number of processes to
launch.
--------------------------------------------------------------------------

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

[file orca_tools/qcmsg.cpp, line 458]:
  .... aborting the run

liaorongbao@liaorongbao:~/ORCA$

第三部分:感觉出错信息告诉我slot数量不够,网查这个是插槽。要求4个。不知道是个什么插槽。是不是处理器要求4个? 怎么在输入文件里面改变成1个处理器呢


68

帖子

4

威望

1570

eV
积分
1718

Level 5 (御坂)

大鸭鸭

6#
发表于 Post on 2019-8-18 22:00:40 | 只看该作者 Only view this author
本帖最后由 linqiaosong 于 2019-8-18 22:02 编辑
liaorongbao 发表于 2019-8-18 21:42
第一部分:我的家目录的.bashrc的最关键部位按照楼上注释后如下(只复制了一部分)

# export PATH="$PAT ...

处理器核数要求4核,如果核数少于4核需要降低输入文件的申请核数。
如果你使用的是带作业管理系统的服务器,提交脚本的时候要申请够4核的核心,如果仍然不能解决,建议咨询服务器管理员。
The leaping arc at your finger
is my faith and will eliminate never
Only the railgun will live forever

159

帖子

3

威望

1507

eV
积分
1726

Level 5 (御坂)

7#
 楼主 Author| 发表于 Post on 2019-8-18 22:42:35 | 只看该作者 Only view this author
linqiaosong 发表于 2019-8-18 22:00
处理器核数要求4核,如果核数少于4核需要降低输入文件的申请核数。
如果你使用的是带作业管理系统的服务 ...

感谢你的跟踪帮助,似乎搞定了。采用Multiwfn的制定ORCA文件格式功能,把之前的文件改成了如下:
! BLYP D3 def2-TZVP def2/J noautostart miniprint nopop
%maxcore 1000
%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
*
这里设置1个处理器,最后屏幕上出现了ORCA TERMINATED NORMALLY字样,用时28秒
尽管我还没找到输出文件是哪个

68

帖子

4

威望

1570

eV
积分
1718

Level 5 (御坂)

大鸭鸭

8#
发表于 Post on 2019-8-19 00:41:37 | 只看该作者 Only view this author
liaorongbao 发表于 2019-8-18 22:42
感谢你的跟踪帮助,似乎搞定了。采用Multiwfn的制定ORCA文件格式功能,把之前的文件改成了如下:
! BLYP ...

使用
  1. orca test.inp > test.out
复制代码
提交代码,>之后的文件就是输出文件
The leaping arc at your finger
is my faith and will eliminate never
Only the railgun will live forever

159

帖子

3

威望

1507

eV
积分
1726

Level 5 (御坂)

9#
 楼主 Author| 发表于 Post on 2019-8-19 11:00:11 | 只看该作者 Only view this author
linqiaosong 发表于 2019-8-19 00:41
使用提交代码,>之后的文件就是输出文件

按照orca test.inp > test.out格式获得了结果文件test.out。
其他方面我的初步理解和问题如下:
找到博文http://sobereva.com/379中解释了产生的test.gbw相当于高斯的.chk文件,博文中说先要转换成.molden后就可以转换成.chk。
产生的test_property.txt似乎保留了一些重要的性质,不知是否与命令行的输入指令相关?是不是与test.out有重复或者说test.out的信息完整程度是否可以覆盖test_property.txt。
另外还有个奇怪的test.prop文件,非常小,用gedit似乎不能解读。不知道是做什么用的?

6万

帖子

99

威望

6万

eV
积分
125204

管理员

公社社长

10#
发表于 Post on 2019-8-19 11:21:24 | 只看该作者 Only view this author
test_property.txt、test.prop一般用不着留着
北京科音自然科学研究中心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

33

帖子

0

威望

1932

eV
积分
1965

Level 5 (御坂)

11#
发表于 Post on 2020-1-25 14:58:47 | 只看该作者 Only view this author
sobereva 发表于 2019-8-19 11:21
test_property.txt、test.prop一般用不着留着

社长您好!我在超算平台上使用ORCA计算HCHO测试文件时也出现了上文中“not enough slots available” 的问题,通过修改“! BLYP def2-SVP noautostart miniprint pal4”为“! BLYP def2-SVP noautostart miniprint nopop"解决了问题。请问社长我将这个计算任务提交到24核的计算节点后,这个任务能够调用24核吗?以下是我的输入文件:
! BLYP def2-SVP noautostart miniprint nopop
* 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
*

6万

帖子

99

威望

6万

eV
积分
125204

管理员

公社社长

12#
发表于 Post on 2020-1-26 00:02:32 | 只看该作者 Only view this author
Villars 发表于 2020-1-25 14:58
社长您好!我在超算平台上使用ORCA计算HCHO测试文件时也出现了上文中“not enough slots available” 的 ...

不能
北京科音自然科学研究中心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

128

帖子

1

威望

429

eV
积分
577

Level 4 (黑子)

13#
发表于 Post on 2020-1-28 09:38:14 | 只看该作者 Only view this author
本帖最后由 DoorBell 于 2020-1-28 09:41 编辑
Villars 发表于 2020-1-25 14:58
社长您好!我在超算平台上使用ORCA计算HCHO测试文件时也出现了上文中“not enough slots available” 的 ...

在输入文件中加入

%pal
    nProcs 24
end

例如:

! BLYP def2-SVP noautostart miniprint nopop
%pal nProcs 24 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
*
这使得ORCA使用24核并行。另外出现not enough slots available说明脚本写的有问题,常见的PBS和LSF系统都需要在脚本中显式声明多少核。

33

帖子

0

威望

1932

eV
积分
1965

Level 5 (御坂)

14#
发表于 Post on 2020-1-28 15:35:06 | 只看该作者 Only view this author
DoorBell 发表于 2020-1-28 09:38
在输入文件中加入

%pal

感谢老师的回复,我马上尝试做一下,谢谢您

23

帖子

0

威望

272

eV
积分
295

Level 3 能力者

15#
发表于 Post on 2021-1-24 19:35:01 | 只看该作者 Only view this author
liaorongbao 发表于 2019-8-18 21:42
第一部分:我的家目录的.bashrc的最关键部位按照楼上注释后如下(只复制了一部分)

# export PATH="$PAT ...

请问您辅助基组是如何输出的呢

可以请问下输入文件的格式吗?

本版积分规则 Credits rule

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

GMT+8, 2026-2-27 05:00 , Processed in 0.172977 second(s), 21 queries , Gzip On.

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