计算化学公社

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

[CP2K] 求助,cp2k安装时一直显示没有cmake文件

[复制链接 Copy URL]

1

帖子

0

威望

9

eV
积分
10

Level 1 能力者

跳转到指定楼层 Go to specific reply
楼主
alan@alan:~/cp2k/cp2k-9.1/tools/toolchain$ ./install_cp2k_toolchain.sh --with-sirius=no --with-openmpi=install  --with-plumed=install --with-cmake=system
MPI is detected and defaults to MPICH
Compiling with 4 processes.
==================== Finding GCC from system paths ====================
path to gcc is  /usr/bin/gcc
path to g++ is  /usr/bin/g++
path to gfortran is  /usr/bin/gfortran
Found include directory /usr/include
Step gcc took 0.00 seconds.
==================== Getting proc arch info using OpenBLAS tools ====================
OpenBLAS detected LIBCORE = haswell
OpenBLAS detected ARCH    = x86_64
==================== Finding CMake from system paths ====================
ERROR: (./scripts/stage0/install_cmake.sh) cannot find cmake, please check if cmake is installed or in system search path
ERROR: (./scripts/stage0/install_cmake.sh, line 47) Non-zero exit code detected.


455

帖子

1

威望

2929

eV
积分
3404

Level 5 (御坂)

2#
发表于 Post on 2024-1-29 15:27:34 | 只看该作者 Only view this author
下载 CMake 3.28.1 Linux x86_64,传到服务器上并装上去。另外强烈建议注释掉你之前MPICH的环境变量并重新运行。

496

帖子

11

威望

4283

eV
积分
4999

Level 6 (一方通行)

3#
发表于 Post on 2024-1-29 21:08:22 | 只看该作者 Only view this author
本帖最后由 丁越 于 2024-1-29 21:09 编辑

不建议使用这么古老的版本,一些老版本中存在的bug会在新版本中得到修复,另外新版本还会增加许多更新功能,所以没有理由不用最新的。最新的2024.1使用oneapi已经能顺利编译下来了,实测比2023.2版本的GNU编译器编译的要快一点。

评分 Rate

参与人数
Participants 1
eV +3 收起 理由
Reason
snljty2 + 3

查看全部评分 View all ratings

自由发挥,野蛮生长

16

帖子

0

威望

1723

eV
积分
1739

Level 5 (御坂)

4#
发表于 Post on 2024-1-30 22:52:58 | 只看该作者 Only view this author
丁越 发表于 2024-1-29 21:08
不建议使用这么古老的版本,一些老版本中存在的bug会在新版本中得到修复,另外新版本还会增加许多更新功能 ...

请问mpi用自带的intelmpi还是icx/icpx编译的openmpi?ifx可以成功编译吗

496

帖子

11

威望

4283

eV
积分
4999

Level 6 (一方通行)

5#
发表于 Post on 2024-1-31 13:08:24 | 只看该作者 Only view this author
Oxygen 发表于 2024-1-30 22:52
请问mpi用自带的intelmpi还是icx/icpx编译的openmpi?ifx可以成功编译吗

装oneapi后intel编译器、mpi等套件都包含在里面了,不需要你自己编译
自由发挥,野蛮生长

16

帖子

0

威望

1723

eV
积分
1739

Level 5 (御坂)

6#
发表于 Post on 2024-1-31 20:51:36 | 只看该作者 Only view this author
丁越 发表于 2024-1-31 13:08
装oneapi后intel编译器、mpi等套件都包含在里面了,不需要你自己编译

好的,那就是使用IntelMPI。那Fortran编译器是使用ifx还是旧版的ifort?

本版积分规则 Credits rule

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

GMT+8, 2026-2-22 19:43 , Processed in 0.415987 second(s), 27 queries , Gzip On.

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