Skip to content

Removed the temporary variable DMRGint_full when transitioning from 2D block parallelism to serial in Hcontainer.#6487

Merged
dyzheng merged 2 commits intodeepmodeling:LTSfrom
zgn-26714:LTS-2
Sep 9, 2025
Merged

Removed the temporary variable DMRGint_full when transitioning from 2D block parallelism to serial in Hcontainer.#6487
dyzheng merged 2 commits intodeepmodeling:LTSfrom
zgn-26714:LTS-2

Conversation

@zgn-26714
Copy link

@zgn-26714 zgn-26714 commented Sep 6, 2025

Because the previous PR #6440 had an unresolved issue that was blocking the merge, I have now split the PR into several smaller PRs and resubmitted them
This pull request addresses issue #6377
image

A temporary variable DM2D_tmp was created to split the 2D block parallel DM2D into smaller blocks. The function transferParallels2Serials is directly called to convert DM2D_tmp into DMRGint[]. This approach avoids the large memory consumption that would occur if a large matrix DMRGint_full was first used to hold DM2D and then split into smaller matrices DMRGint.

  • delete DMRGint_full

@dyzheng dyzheng merged commit f2fb9af into deepmodeling:LTS Sep 9, 2025
26 of 27 checks passed
dyzheng pushed a commit that referenced this pull request Sep 26, 2025
. (#6511)

* Fixed the bug in memory statistics

* delete tem Hcontainer to reduce memory usage

* delete tem hRGintCd to reduce memory usage

* fix parallel bug

* Simplify the computational code

* improve the serial code

* fix bug

---------

Co-authored-by: dyzheng <zhengdy@bjaisi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants