计算化学公社

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

[CP2K] 求助cp2k运行时出现WARNING

[复制链接 Copy URL]

17

帖子

0

威望

233

eV
积分
250

Level 3 能力者

跳转到指定楼层 Go to specific reply
#
大家好:
我尝试了编译CP2K9.1,通过openmpi/4.1.1以及GCC/9.3.0编译的,toolchain和make全部正常结束,test也是0error全过。但是在运行的时候总是会报错:
--
By default, for Open MPI 4.0 and later, infiniband ports on a device
are not used by default.  The intent is to use UCX for these devices.
You can override this policy by setting the btl_openib_allow_ib MCA parameter
to true.

  Local host:              node268
  Local adapter:           mlx4_0
  Local port:              1

--------------------------------------------------------------------------
--------------------------------------------------------------------------
WARNING: There was an error initializing an OpenFabrics device.

  Local host:   node268
  Local device: mlx4_0
--------------------------------------------------------------------------
[node268:24113] 23 more processes have sent help message help-mpi-btl-openib.txt / ib port not selected
[node268:24113] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
[node268:24113] 23 more processes have sent help message help-mpi-btl-openib.txt / error in device init

--
作业提交脚本为:
#!/bin/bash
module purge
module load openmpi/4.1.1/gcc/9.3.0   

bsub -J cp2ktest -q test -n 24  -o %J.out -e %J.err   mpirun -np 24 cp2k.psmp  cp2k.inp


请问这是什么原因呢?会对计算速度甚至结果产生什么影响呢,以及需要如何改进?
谢谢各位老师!

110

帖子

0

威望

4158

eV
积分
4268

Level 6 (一方通行)

楼主
发表于 Post on 2022-6-3 23:55:33 | 只看该作者 Only view this author
记得这个问题在OpenMPI官方的Q&A里有提到,具体会对计算有什么影响不太清楚。

可以在mpirun后面加入--mca btl '^openib', 实测可以解决这个Warning.
也可以试试在bsub前加一行export OMPI_MCA_btl_openib_allow_ib=1.

评分 Rate

参与人数
Participants 2
eV +6 收起 理由
Reason
zcang1995 + 1 赞!
elpa + 5 赞!

查看全部评分 View all ratings

「狩りってのは先に焦せった方の負けだ、ハンターも獲物もな」

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

GMT+8, 2026-1-24 04:02 , Processed in 0.177464 second(s), 22 queries , Gzip On.

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