计算化学公社

标题: 关于cp2k的并行出错 [打印本页]

作者
Author:
lastzealot    时间: 2019-1-24 09:16
标题: 关于cp2k的并行出错
大家好,我从网上直接apt-get获得了cp2k-5.1及相关的数据库,安装了mpich-3.3并做了测试发现mpi本身是没有问题的。
CP2K version 5.1
SVN source code revision svn:18091
cp2kflags: libint fftw3 libxc parallel mpi3 scalapack libderiv_max_am1=5 libint_max_am=6


但是,每次mpirun -np 4 cp2k -i xx.in -o xx.out &之后,都会显示

MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.


但是计算仍在继续,估计是只有一个核在跑,其它的不工作。

请问大家,这种不并行的问题应该如何解决?


谢谢

作者
Author:
youyno    时间: 2019-1-24 17:20
CP2K有多个并行和串行版本,看看他的INSTALL 和 README,mpirun -np 4 cp2k -i xx.in -o xx.out &中可执行程序是cp2k?看看exe文件下生成的可执行程序是啥再说!
作者
Author:
lastzealot    时间: 2019-1-25 10:20
youyno 发表于 2019-1-24 17:20
CP2K有多个并行和串行版本,看看他的INSTALL 和 README,mpirun -np 4 cp2k -i xx.in -o xx.out &中可执行 ...

好的,谢谢您。cp2k是可执行程序,如果命令中不加mpirun就可以算。
作者
Author:
highlight    时间: 2019-1-26 10:25
如果你指的是这个 https://ubuntu.pkgs.org/18.04/ub ... .1-3_amd64.deb.html
那你需要的是 openmpi 而不是 mpich 吧
作者
Author:
lastzealot    时间: 2019-1-28 07:47
highlight 发表于 2019-1-26 10:25
如果你指的是这个 https://ubuntu.pkgs.org/18.04/ubuntu-universe-amd64/cp2k_5.1-3_amd64.deb.html
那你 ...

我一开始装的是openmpi,但是在安装的最后出问题了,一个叫f08.mod的文件缺失,后来无奈才装mpich。我换一个openmpi版本试试
作者
Author:
haibeih    时间: 2020-9-10 16:10
楼主问题解决了吗?我也有类似情况,就是显示很多核在运行,但是其实是单核运行,也没有报错,就卡在那里~




欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3