计算化学公社

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

[VASP] 求助 如何使用gpu加速vasp机器学习力场计算?

[复制链接 Copy URL]

3

帖子

0

威望

43

eV
积分
46

Level 2 能力者

跳转到指定楼层 Go to specific reply
楼主
本帖最后由 doma 于 2025-12-5 12:52 编辑

vasp6.5.0使用arch里的模板makefile.include.nvhpc_ompi_mkl_omp_acc成功编译了gpu版vasp 单卡v100 16g
在win11的wsl Ubuntu24中经测试跑标准密度泛函  使用mpirun -n 1 vasp_std  可以调用gpu跑满,也有加速效果
但一旦启用ML_MODE=RUN,任务管理器中没发现gpu有负载。
请问有大佬知道有可能是什么原因吗?
是不是VASP机器学习mlff本身不支持gpu?

16

帖子

0

威望

638

eV
积分
654

Level 4 (黑子)

2#
发表于 Post on 2025-12-6 11:01:01 | 只看该作者 Only view this author
参考链接:https://vasp.at/wiki/Best_practi ... earned_force_fields
At present, VASP provides only MPI-based parallelization for the MLFF feature. Therefore, any operational mode relying exclusively on MLFF code - such as predictive MD simulations (ML_MODE = run) and local reference configuration selection (ML_MODE = select) - cannot leverage alternative forms of parallelization like OpenACC offloading to GPUs or an MPI/OpenMP hybrid approach. Conversely, a usual on-the-fly training involves both MLFF generation and ab-initio computations. When the latter component predominates in terms of computational demand, utilizing non-MPI parallelization remains practical.

3

帖子

0

威望

43

eV
积分
46

Level 2 能力者

3#
 楼主 Author| 发表于 Post on 2025-12-7 23:25:32 | 只看该作者 Only view this author
wangxc 发表于 2025-12-6 11:01
参考链接:https://vasp.at/wiki/Best_practices_for_machine-learned_force_fields
At present, VASP pro ...

感谢,看来目前只能第一步on the fly training在计算第一性原理的时候时能吃到GPU加速。

11

帖子

0

威望

81

eV
积分
92

Level 2 能力者

4#
发表于 Post on 2025-12-23 09:59:08 | 只看该作者 Only view this author
请问Vasp支持gpu加速的版本都有哪些呀?是只有最新版本才支持,还是旧的版本也会有?感谢

3

帖子

0

威望

43

eV
积分
46

Level 2 能力者

5#
 楼主 Author| 发表于 Post on 2025-12-26 04:43:05 | 只看该作者 Only view this author
Myth 发表于 2025-12-23 09:59
请问Vasp支持gpu加速的版本都有哪些呀?是只有最新版本才支持,还是旧的版本也会有?感谢

看起来新旧都有
https://www.vasp.at/wiki/OpenACC_GPU_port_of_VASP
https://www.vasp.at/wiki/Installing_VASP.5.X.X#For_the_GPU_port

11

帖子

0

威望

81

eV
积分
92

Level 2 能力者

6#
发表于 Post on 2025-12-26 09:20:47 | 只看该作者 Only view this author
doma 发表于 2025-12-26 04:43
看起来新旧都有
https://www.vasp.at/wiki/OpenACC_GPU_port_of_VASP
https://www.vasp.at/wiki/Instal ...

收到,十分感谢

本版积分规则 Credits rule

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

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

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