计算化学公社

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

[CP2K] cp2k编译libint出错

[复制链接 Copy URL]

25

帖子

0

威望

389

eV
积分
414

Level 3 能力者

跳转到指定楼层 Go to specific reply
楼主

在虚拟机上centos7上安装cp2k 8.1,libint-v2.6.0-cp2k-lmax-5编译不过去,用的intel xe 19.0.4,gcc,c++,gfortran都是9.3.0
  1. icpc: command line warning #10121: overriding '-march=native' with '-march=native'
  2. icpc: command line warning #10121: overriding '-march=native' with '-march=native'
  3. /lib/../lib64/crt1.o: In function `_start':
  4. (.text+0x20): undefined reference to `main'
  5. make[1]: *** [fortran_example] Error 1
  6. make[1]: Leaving directory `/taopan/cp2k-8.1/tools/toolchain/build/libint-v2.6.0-cp2k-lmax-5/fortran'
  7. make: *** [fortran] Error 1
复制代码
install.log (6.39 KB, 下载次数 Times of downloads: 9) config.log (70.43 KB, 下载次数 Times of downloads: 7) configure.log (8.5 KB, 下载次数 Times of downloads: 3)

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

2#
发表于 Post on 2021-5-15 20:35:40 | 只看该作者 Only view this author
想用intel编译器,编译所需的组件,
不是轻易地写CC=icc之类的就可以搞定的。

为保证计算效率,
你至少需要采用intel编译器,
处理elpa, libinit, lbxc.4.3.4,libxsmm,
大概这几个。
祝好。
High-Performance Computing for You
为您专属定制的高性能计算解决方案

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

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

3#
发表于 Post on 2021-5-15 20:44:32 | 只看该作者 Only view this author
如果是想折腾如何编译cp2k所依赖的组件以及cp2k主程序本体,
建议参考官方的cp2k/tools/toolchain/Dockerfile.ubuntu_nompi 搞一通。
这个安装速度最快。

而后再搞cp2k/tools/toolchain/Dockerfile。

每个文件都在告诉你如何做?
如果你不想学习docker相关内容,
你仅仅需要晓得, RUN XXX  你就去执行XXX, 当然需要修改路径。
ENV XXXX, 你就去export XXXX。
这个会给你cp2k所依赖的toolchain。
里面的每一个脚本,都在告诉你,每一个组件如何去编译。
当然默认是GNU编译器。
能搞定这个,再修改为intel编译器。

High-Performance Computing for You
为您专属定制的高性能计算解决方案

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

25

帖子

0

威望

389

eV
积分
414

Level 3 能力者

4#
 楼主 Author| 发表于 Post on 2021-5-16 14:22:08 | 只看该作者 Only view this author
abin 发表于 2021-5-15 20:44
如果是想折腾如何编译cp2k所依赖的组件以及cp2k主程序本体,
建议参考官方的cp2k/tools/toolchain/Dockerf ...

在编译cp2k的时候出现了一个错误,
/taopan/cp2k-8.1/exts/dbcsr/src/mpi/dbcsr_mpiwrap.F:27:7:

   27 |    USE mpi
      |       1
Warning: USE statement at (1) has no ONLY qualifier [-Wuse-without-only]
/taopan/cp2k-8.1/exts/dbcsr/src/mpi/dbcsr_mpiwrap.F:27:7: Fatal Error: Cannot read module file ‘mpi.mod’ opened at (1), because it was created by a different version of GNU Fortran
compilation terminated.
/usr/bin/env python3 /taopan/cp2k-8.1/exts/dbcsr/tools/build_utils/fypp/bin/fypp -n --line-marker-format=gfortran5 /taopan/cp2k-8.1/exts/dbcsr/src/core/dbcsr_list_routinestat.F dbcsr_list_routinestat.F90
make[4]: *** [dbcsr_mpiwrap.o] Error 1
make[4]: *** Waiting for unfinished jobs....
/usr/bin/env python3 /taopan/cp2k-8.1/exts/dbcsr/tools/build_utils/fypp/bin/fypp -n --line-marker-format=gfortran5 /taopan/cp2k-8.1/exts/dbcsr/src/core/dbcsr_array_types.F dbcsr_array_types.F90

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

5#
发表于 Post on 2021-5-16 14:29:52 | 只看该作者 Only view this author
本帖最后由 abin 于 2021-5-16 16:26 编辑
taopan 发表于 2021-5-16 14:22
在编译cp2k的时候出现了一个错误,
/taopan/cp2k-8.1/exts/dbcsr/src/mpi/dbcsr_mpiwrap.F:27:7:

我有适用于生产环境的、
采用intel编译器优化的、支持AVX512指令集的版本可以提供。

如有需要请联系我。
具体可以查看 https://gitee.com/hpc4you/linux

如果仅仅是练习如何编译,
I would say
RTFM carefully and take your time.
High-Performance Computing for You
为您专属定制的高性能计算解决方案

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

19

帖子

0

威望

859

eV
积分
878

Level 4 (黑子)

6#
发表于 Post on 2021-8-16 21:12:11 | 只看该作者 Only view this author
请问楼主解决了吗?我也遇到了这个问题

15

帖子

0

威望

563

eV
积分
578

Level 4 (黑子)

7#
发表于 Post on 2021-11-24 09:11:00 | 只看该作者 Only view this author
zzp 发表于 2021-8-16 21:12
请问楼主解决了吗?我也遇到了这个问题

您这个问题怎么解决的啊?

15

帖子

0

威望

563

eV
积分
578

Level 4 (黑子)

8#
发表于 Post on 2021-11-24 09:11:23 | 只看该作者 Only view this author
这个问题您解决了吗?

25

帖子

0

威望

389

eV
积分
414

Level 3 能力者

9#
 楼主 Author| 发表于 Post on 2021-11-30 21:19:22 | 只看该作者 Only view this author
GEEK 发表于 2021-11-24 09:11
这个问题您解决了吗?

米有解决,太难了,直接放弃了

114

帖子

0

威望

1034

eV
积分
1148

Level 4 (黑子)

10#
发表于 Post on 2022-6-7 14:28:41 | 只看该作者 Only view this author
taopan 发表于 2021-11-30 21:19
米有解决,太难了,直接放弃了

你编译不过去的时候检查一下gcc版本,可能回到了旧版本。我就遇到了这个情况。

240

帖子

1

威望

4089

eV
积分
4349

Level 6 (一方通行)

11#
发表于 Post on 2022-6-7 18:44:27 | 只看该作者 Only view this author
taopan 发表于 2021-5-16 14:22
在编译cp2k的时候出现了一个错误,
/taopan/cp2k-8.1/exts/dbcsr/src/mpi/dbcsr_mpiwrap.F:27:7:

编译器不匹配,换一个试一下

本版积分规则 Credits rule

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

GMT+8, 2026-2-20 06:42 , Processed in 0.176541 second(s), 23 queries , Gzip On.

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