Skip to content

Commit

Permalink
update gpu-lcao
Browse files Browse the repository at this point in the history
  • Loading branch information
Chentao168 committed Oct 31, 2024
1 parent 97e7c07 commit 2f34936
Show file tree
Hide file tree
Showing 78 changed files with 89 additions and 86 deletions.
2 changes: 1 addition & 1 deletion _book/abacus-bader.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-candela.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-chg.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-conv.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-dcu.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-dos.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-dpgen.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-dpmd.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-elastic.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-elf.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-gcc.html

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions _book/abacus-gpu-lcao.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-gpu.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-hpc.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-intel.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-libri.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-md.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-nac1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-nac2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-nac3.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-namd.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-ofdft.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-oneapi.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-pdos.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-phonopy.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-pw.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-question.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-sdft.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-sdft_cond.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-shengbte.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-sol.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface3.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface4.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface5.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-surface6.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-tddft.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-upf.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-uspex.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/abacus-wannier.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/algorithm-delta.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/algorithm-mix.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/algorithm-wannier.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/contribute.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-C++.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-addinp.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-addinp2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-cifparser.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-design.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-dox.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-format.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-formatter2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-grid.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-input.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-issue.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-linedete.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path10.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path11.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path3.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path4.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path5.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path6.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path7.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path8.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-path9.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-rule.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-sm1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-sm2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-test1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-test2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/develop-vtune.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/news.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/search_plus_index.json

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions abacus-gpu-lcao.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

<strong>审核:陈默涵,邮箱:[email protected]</strong>

<strong>最后更新时间:2024/10/06</strong>
<strong>最后更新时间:2024/10/31</strong>

<strong>文档对应 notebook:[ABACUS LCAO 基组 GPU 版本使用介绍 | Bohrium](https://bohrium.dp.tech/notebooks/29414947682)</strong>

# 一、简介

Expand All @@ -14,7 +16,7 @@

要使用 GPU 版的 ABACUS,使用 CMAKE 编译 ABACUS 的时候(ABACUS 编译方法详见 [https://abacus.deepmodeling.com/en/latest/quick_start/easy_install.html](https://abacus.deepmodeling.com/en/latest/quick_start/easy_install.html)),需要进行如下设置。

- <strong>格点积分 GPU 版支持,以及 cusolver 求解器支持:</strong>需要设置 `-DUSE_CUDA=ON`
- <strong>格点积分 GPU 版支持,以及 cusolver 求解器支持:</strong>需要安装 cuda-toolkit,并在编译 ABACUS 时设置 `-DUSE_CUDA=ON`
- <strong>cusolvermp 求解器支持:</strong>编译 ABACUS 之前,需要确保系统上安装了 cusolvermp 相关库,具体安装方法见 [https://docs.nvidia.com/cuda/cusolvermp/](https://docs.nvidia.com/cuda/cusolvermp/)<strong>。</strong>除了设置 `-DUSE_CUDA=ON` 之外,还需要设置 `-DENABLE_CUSOLVERMP=ON`
- <strong>GPU 版 ELPA 求解器支持:</strong>编译 ABACUS 之前,需要确保系统上安装了支持 GPU 版本的 ELPA,安装方法详见 [https://github.com/marekandreas/elpa/blob/master/documentation/INSTALL](https://github.com/marekandreas/elpa/blob/master/documentation/INSTALL),安装过程可以参考 [https://github.com/deepmodeling/abacus-develop/pull/4969](https://github.com/deepmodeling/abacus-develop/pull/4969)。安装好 ELPA 之后,在编译 ABACUS 时,需要设置 `-DUSE_CUDA=ON`, `-DUSE_ELPA=ON`

Expand Down Expand Up @@ -412,8 +414,8 @@ TIME STATISTICS
SEE INFORMATION IN : OUT.autotest/
```

输出中的 `“RUNNING WITH DEVICE”` 一行标出了此次运算使用的设备,同时运行时间统计里可以看到格点积分以及广义特征值求解的具体耗时,通过这两项耗时可以对比 GPU 和 CPU 的计算效率。格点积分耗时对应 `cal_gint`, `cal_gint_vlocal`, `cal_gint_rho`,`cal_gint_force` 这几项,广义特征值求解对应 `solve` 项(在上面输出中标黄项)。
输出中的 `“RUNNING WITH DEVICE”` 一行标出了此次运算使用的设备,同时运行时间统计里可以看到格点积分以及广义特征值求解的具体耗时,通过这两项耗时可以对比 GPU 和 CPU 的计算效率。格点积分耗时对应 `cal_gint`, `cal_gint_vlocal`, `cal_gint_rho`,`cal_gint_force` 这几项,广义特征值求解对应 `hamiltSolvePsiK` 项(在上面输出中标黄项)。

可以看到 GPU 运行用了 95 秒,而同样体系用 CPU 运行用了 224 秒,GPU 对于该体系有一定的加速效果。

以上就是本教程的内容,希望对学习采用 ABACUS 结合 GPU 进行密度泛函理论计算的读者有所帮助,有问题可以发邮箱给作者(见开头)。
以上就是本教程的内容,希望对学习采用 ABACUS 结合 GPU 进行密度泛函理论计算的读者有所帮助,大家也可以在 bohrium 平台按照<strong>[ABACUS LCAO 基组 GPU 版本使用介绍 | Bohrium](https://bohrium.dp.tech/notebooks/29414947682)</strong>跑一遍实际安装使用流程,有问题可以发邮箱给作者(见开头)。

0 comments on commit 2f34936

Please sign in to comment.