Skip to content

Parallel DFT-D4 with MPI through work-partition - #8041

Merged
mohanchen merged 1 commit into
deepmodeling:developfrom
Growl1234:dftd4
Sep 30, 2026
Merged

mohanchen merged 1 commit into
deepmodeling:developfrom
Growl1234:dftd4

Conversation

@Growl1234

@Growl1234 Growl1234 commented Sep 28, 2026 •

Copy link
Copy Markdown

dftd4 library now has a work partitioning implementation (see dftd4/dftd4#395), which allows downstream callers to assign each rank a partition of the pairwise and ATM interaction loops, and then reduce the resulting energy, gradient, and virial themselves. With work partitioning applied it's now available for ABACUS to parallel DFT-D4 evaluation with MPI.

Here is a test example: test.zip. In the tested cell-relaxation case, the timing of Vdwd4::evaluate has dropped from around 16.09 s to 3.55 s.

Closes #7487.

Copilot AI lite review requested due to automatic review settings September 28, 2026 10:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment thread source/source_hamilt/module_vdw/vdwd4.cpp
Comment thread source/source_hamilt/module_vdw/test/CMakeLists.txt Outdated
@Growl1234
Growl1234 force-pushed the dftd4 branch 2 times, most recently from 037bcc2 to c16a278 Compare September 29, 2026 05:58
@mohanchen mohanchen added GPU & DCU & HPC GPU and DCU and HPC related any issues Refactor Refactor ABACUS codes labels Sep 30, 2026

@mohanchen mohanchen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contributions.

@mohanchen
mohanchen merged commit 43a4a2a into deepmodeling:develop Sep 30, 2026
21 of 22 checks passed
@Growl1234
Growl1234 deleted the dftd4 branch September 30, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GPU & DCU & HPC GPU and DCU and HPC related any issues Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dftd4 library does not support MPI parallelism

4 participants