Repository navigation
experiment(lcao): retain cuSOLVER eigenvectors for Gamma FP64 density matrices - #8392
Draft
Stardust0831 wants to merge 5 commits into
Draft
Stardust0831 wants to merge 5 commits into
Stardust0831 wants to merge 5 commits into
Conversation
This branch has not been deployed
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.
What's changed?
Gamma-only LCAO currently returns cuSOLVER eigenvectors to the host for CPU density-matrix construction. This pilot retains them on the GPU through the actual occupation calculation, builds
D = C diag(f) C^Twith FP64 cuBLAS, and redistributes D for the existing CPU DMR consumer.The default-off CMake option
ABACUS_DM_DIRECT_PILOTenables environment modescpu,directandverify. Scope: real Gamma,nspin=1, one k point,kpar=1, one node/GPU, multiple MPI ranks and charge updates; other configurations retain the existing path.Unit Tests and/or Case Tests for my changes
Matched Si/PBE/DZP SCFs used the same binary and full FP64
cusolverDnDsygvd, four MPI ranks, a 2×2 grid, one OpenMP/BLAS thread, and three alternating pairs after warmup.Both paths converged in 12 iterations. Large-case process wall time fell from 473.27 s to 384.17 s (18.83%), including startup, transfers and synchronization. Hardware differs between sizes; each A/B comparison uses the same machine.
8.44e-15(tolerance1e-10), Tr(DS) error1.82e-8electrons (1e-7), and paired final-energy difference1.02e-10eV (1e-6). Fractional occupations were exercised.Verification commands and source identity
cmake --build build --target abacus_basic_gpu \ MODULE_HSOLVER_direct_dm MODULE_HSOLVER_LCAO_cusolver --parallel 8 ctest --test-dir build -V \ -R '^MODULE_HSOLVER_(direct_dm|LCAO_cusolver)$' git diff 98700b9 HEAD --check python3 tools/03_code_analysis/agent_governance_check.py \ --base 98700b9 --head HEAD --format textBuild/tests and whitespace checks passed; governance reported no blockers. Build: Release/sm70, GCC 13.3, CUDA 12.9.1, OpenMPI 5.0.10, OpenBLAS 0.3.32. SAI jobs 2821707, 2821899, 2822271 and 2822576 completed with exit
0:0.Baseline:
98700b960746a4acecb86ee57f131804a1e5d9a6. Timings:520dada; final source:880b0aa, which only names intermediate expressions/test results and was separately rebuilt and checked with both unit suites and a Si8 CPU/verify pair. Raw cases, logs, binaries and hashes remain in the experiment evidence bundle.Linked Issue
No linked issue; this is a standalone experimental evaluation.
Governance Notes
auto,decltype, direct MPI calls or global-control references.Template checklist
Reminder
AGENTS.mdanddocs/developers_guide/agent_governance.md.source/changes.