计算化学公社

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

[CP2K] cp2k 8.1在centos7编译出错

[复制链接 Copy URL]

25

帖子

0

威望

389

eV
积分
414

Level 3 能力者

跳转到指定楼层 Go to specific reply
楼主
在一开始编译的时候就出错了,openblas一直编译不过去,不知道什么原因?
  1. ==================== Getting proc arch info using OpenBLAS tools ====================
  2. OpenBLAS-0.3.10.tar.gz is found
  3. getarch_2nd.c: In function ‘main’:
  4. getarch_2nd.c:14:35: error: ‘SGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
  5.      printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
  6.                                    ^
  7. getarch_2nd.c:14:35: note: each undeclared identifier is reported only once for each function it appears in
  8. getarch_2nd.c:15:35: error: ‘SGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
  9.      printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
  10.                                    ^
  11. getarch_2nd.c:16:35: error: ‘DGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
  12.      printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
  13.                                    ^
  14. getarch_2nd.c:17:35: error: ‘DGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
  15.      printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
  16.                                    ^
  17. getarch_2nd.c:21:35: error: ‘CGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
  18.      printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
  19.                                    ^
  20. getarch_2nd.c:22:35: error: ‘CGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
  21.      printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
  22.                                    ^
  23. getarch_2nd.c:23:35: error: ‘ZGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
  24.      printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
  25.                                    ^
  26. getarch_2nd.c:24:35: error: ‘ZGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
  27.      printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
  28.                                    ^
  29. getarch_2nd.c:71:50: error: ‘SGEMM_DEFAULT_Q’ undeclared (first use in this function)
  30.      printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 *  sizeof(float)));
  31.                                                   ^
  32. getarch_2nd.c:72:50: error: ‘DGEMM_DEFAULT_Q’ undeclared (first use in this function)
  33.      printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 *  sizeof(double)));
  34.                                                   ^
  35. getarch_2nd.c:73:50: error: ‘CGEMM_DEFAULT_Q’ undeclared (first use in this function)
  36.      printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 *  sizeof(float)));
  37.                                                   ^
  38. getarch_2nd.c:74:50: error: ‘ZGEMM_DEFAULT_Q’ undeclared (first use in this function)
  39.      printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 *  sizeof(double)));
  40.                                                   ^
  41. make: *** [getarch_2nd] Error 1
  42. OpenBLAS detected LIBCORE = unknown
  43. OpenBLAS detected ARCH    = x86_64
复制代码


2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

2#
发表于 Post on 2021-5-13 19:45:03 | 只看该作者 Only view this author
啥处理器?

啥系统?

如果是intel skx处理器,系统不是很老,
我有优化编译好的支持avx512指令集的版本。

暂时不支持CentOS6以及更老的系统。
High-Performance Computing for You
为您专属定制的高性能计算解决方案

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

25

帖子

0

威望

389

eV
积分
414

Level 3 能力者

3#
 楼主 Author| 发表于 Post on 2021-5-13 19:51:00 | 只看该作者 Only view this author
abin 发表于 2021-5-13 19:45
啥处理器?

啥系统?

虚拟机中装的centos7  intel i7

255

帖子

4

威望

4943

eV
积分
5278

Level 6 (一方通行)

4#
发表于 Post on 2021-5-13 19:55:59 | 只看该作者 Only view this author
用intel mkl就可以,没有必要装openblas

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

5#
发表于 Post on 2021-5-13 20:09:05 | 只看该作者 Only view this author
taopan 发表于 2021-5-13 19:51
虚拟机中装的centos7  intel i7

i7 应该是skx平台的。
我优化好的版本你用不了。

如果在使用官方toolchain脚本,请确保网络正常。
其他不懂。
High-Performance Computing for You
为您专属定制的高性能计算解决方案

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

25

帖子

0

威望

389

eV
积分
414

Level 3 能力者

6#
 楼主 Author| 发表于 Post on 2021-5-13 20:11:58 | 只看该作者 Only view this author
djjj148 发表于 2021-5-13 19:55
用intel mkl就可以,没有必要装openblas

加了--with-openblas=no没用,还是会安装

16

帖子

0

威望

707

eV
积分
723

Level 4 (黑子)

7#
发表于 Post on 2021-11-1 17:11:57 | 只看该作者 Only view this author
修改toolchain的install_cp2k_toolchain.sh,把openblas那段注释掉,就可以继续编译了,但接下来每次在github里下载东西都会报错,是网络的问题。解决方法是科学上网一下,但咋在服务器里科学上网,我也不清楚

25

帖子

0

威望

389

eV
积分
414

Level 3 能力者

8#
 楼主 Author| 发表于 Post on 2021-11-5 19:38:57 | 只看该作者 Only view this author
kjlee 发表于 2021-11-1 17:11
修改toolchain的install_cp2k_toolchain.sh,把openblas那段注释掉,就可以继续编译了,但接下来每次在gith ...

emmm,服务器咋上网,太难了啊

1665

帖子

5

威望

4788

eV
积分
6553

Level 6 (一方通行)

喵星人

9#
发表于 Post on 2021-11-6 02:34:35 | 只看该作者 Only view this author
去手动把东西下好扔进去啊

17

帖子

0

威望

390

eV
积分
407

Level 3 能力者

10#
发表于 Post on 2022-3-20 20:55:07 | 只看该作者 Only view this author
taopan 发表于 2021-11-5 19:38
emmm,服务器咋上网,太难了啊

请问您解决了吗

1187

帖子

5

威望

2876

eV
积分
4163

Level 6 (一方通行)

11#
发表于 Post on 2022-3-20 21:07:57 | 只看该作者 Only view this author
shuihua 发表于 2022-3-20 20:55
请问您解决了吗

看提示,每次自动下载会有一个报错,找到里面的网址,找一台能上网的电脑下载下来,传到CP2K解压后的tools/toolchain/build里。有几个可能要改名,注意看报错的提示里面wget后面有没有-O参数。

10

帖子

0

威望

580

eV
积分
590

Level 4 (黑子)

12#
发表于 Post on 2024-2-1 23:05:08 | 只看该作者 Only view this author
出现相同的问题

本版积分规则 Credits rule

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

GMT+8, 2026-2-22 06:37 , Processed in 0.157720 second(s), 20 queries , Gzip On.

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