Pexsi stage4 pattern reuse opt#7392
Open
JohnHe233 wants to merge 23 commits into
Open
Conversation
mohanchen
reviewed
May 29, 2026
Collaborator
There was a problem hiding this comment.
We don't need your .tex file in this PR
Collaborator
There was a problem hiding this comment.
What's the py code used for?
Collaborator
There was a problem hiding this comment.
What's the py code used for?
Collaborator
There was a problem hiding this comment.
We don't need tex file in the code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reminder
tests for your pull request?
below or in the linked issue?
modules of ESolver, HSolver, ElecState, Hamilt,
Operator or Psi? (ignore if not applicable)
Linked Issue
Fix #...
Unit Tests and/or Case Tests for my changes
and density-matrix related code paths.
including Gamma-only and multi-k cases.
develop based branch using identical input files.
with both conventional solver and PEXSI under multiple
MPI sizes.
regress against origin/develop on the same inputs for
the tested Gamma cases.
What's changed?
complex BCD-to-CCS / CCS-to-BCD matrix conversion,
complex PEXSI driver calls, and density-matrix /
energy-density-matrix writeback.
direct coupling between
DiagoPexsiand the concretePEXSI backend, making the code easier to test and
extend.
container-managed storage while preserving the
existing pointer-based call interface.
global chemical-potential handling for multi-k
calculations.
pexsi_tempwith Fermi-Dirac smearing whenappropriate.
and S values in one redistribution path.
stages to help identify performance bottlenecks.
options.spin, while applying the spin handlingneeded by the complex multi-k path separately.
Gamma comparison, and remaining bottlenecks in the
LaTeX refactor report.
Any changes of core modules? (ignore if not
applicable)
HSolver: extended the PEXSI diagonalization pathto support complex multi-k calculations and added the
PEXSI abstraction interface.
ElecState: updated LCAO density-matrix handling soPEXSI-generated DM/EDM can be written back correctly.
module_pexsi: added complex matrix conversion,complex PEXSI execution, timing instrumentation, and
safer ownership of intermediate buffers.
ESolver, Hamilt, Operator, or Psi behavior.