Repository navigation
perf(lcao): release Bessel workspace after EXX initialization - #8437
Open
Stardust0831 wants to merge 1 commit into
Open
Stardust0831 wants to merge 1 commit into
Stardust0831 wants to merge 1 commit 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?
LCAO EXX retains a large spherical-Bessel table after its radial interpolation tables have been built. Release the D2 value buffers at the end of EXX initialization, retaining the table objects, grid and request history so a later access can reconstruct the original values. Serialize lazy reconstruction for concurrent readers and add focused tests for release, exact reconstruction, subsequent growth, and copy/move behavior.
Unit Tests and/or Case Tests for my changes
TiO2-48 HSE MD: one matched pair on the same node, 16 MPI ranks / 16 V100 GPUs, one OpenMP/BLAS thread per rank, Gamma FP64 cuSOLVER with GPU XC/EXX. Both use the same inputs, screening and
scf_thr=1e-9. NVE at initially 300 K,md_dt=0.5 fs, fixed seed;md_nstep=3is the initial frame plus two integration advances (1 fs total).All three SCFs converged with identical iteration counts. Maximum differences: energy
0at printed precision, DM element6.75e-11, force component1.59e-8 eV/Angstrom; positions and velocities agree at output precision. Maximum|Tr(DS)-384|is5.68e-14. Acceptance tolerances were respectively1e-6 eV,1e-8,1e-5 eV/Angstrom, and1e-7electrons.Temporary counters in the candidate MD build recorded zero reconstructions on all 16 ranks after releasing 0.962 GiB of value-buffer capacity per rank. The six C++11 unit tests passed, including a positive control that performed seven reconstructions. Earlier matched Si8 and TiO2-48 SCF/force checks also passed.
Host peaks are sampled job
memory.currentvalues (about 2 s cadence; lower bounds). Candidate wall time includes counter logging. This single pair does not establish a repeatable speedup; total RAM still grows across MD frames, and the cost of a production-size reconstruction was not exercised here.Reproduction details and verification commands
Tested base
a56706f5790dcd4e12a76abab334e635ed1fef29, candidate17432fae40d121bdd02781424f97fc0c6e38fa4c.Both sides use identical LibRI
210ba55377567f76d62e3ec7c8bea31d8e42a50band the same pre-existing dependency optimizations.Commands run with the task-local harness:
All passed (SAI jobs 2975407 and 2975461). Diff, governance and CMake-format checks passed with header-dependency warnings explained below. The full repository test suite was outside this focused validation.
Linked Issue
No linked issue; this addresses the measured EXX host-memory footprint.
Governance Notes