Repository navigation
Conversation
Select the LibRI backend from device_exx for both shared and owned LR workspaces using the LibRI v0.3.0.0 API. An LR workspace can start the CUDA pool policy from deepmodeling#8519 on its own and release it at solver exit. (cherry picked from commit 122d145f5aec50b479df08396ee28381c09220fb)
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
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?
Apply the existing
device_exxsetting to the LibRI exchange workspace for bothks-lrand standalonelr. The workspace selects its backend before sharing the Kohn-Sham geometry tensors or building its own geometry tensors. This covers Casida exchange and the exact-exchange contractions in excited-state gradients.Reuse the default CUDA memory pool policy from #8519. Standalone LR can enable retention before its first exchange contraction. At solver exit, the LR workspace restores the release threshold and requests a trim when it owns the policy.
Linked PRs
Extends the GPU EXX integration from #8169 and uses the CUDA pool lifecycle from #8519.
Core module impact
ESolver passes the existing INPUT setting to the LR workspace. The LibRI workspace owns backend selection and retains independent electronic buffers. Updated the
device_exxhelp and installation guide for LR support. The GPU build uses the released LibRI v0.3.0.0 and CUDA DDLA v0.0.7 interfaces.Unit Tests and/or Case Tests for my changes
abacus_std_gpuwithcmake --build build --target abacus_std_gpu --parallel 24. The LibRI GPU API compile/link probe passed with LibRI v0.3.0.0 and CUDA DDLA v0.0.7.abacus_std_gpu --versionreportedv3.11.0-beta14for the build off0ecbd65f.OMP_NUM_THREADS=1, andnum_stream 1. The input passedabacus_std_gpu --check-input. Bothks-lrand standalonelrcompleted the excitation solve and printed the excited-state force withdevice gpu,device_exx gpu, andcal_force 1.1.7571530682165615 Ryin both runs, and all six signed force components matched at the output precision. A temporary runtime probe recorded successful GPU DDLA initialization, release-threshold changes from0toUINT64_MAXand back, and a successful pool trim in standalone LR.ctest --test-dir build -R '^MODULE_RI_exx_workspace$' --output-on-failurepassed, using the system C++ runtime with the site GTest installation.git diff --check origin/develop...HEADandpython3 tools/03_code_analysis/agent_governance_check.py --base origin/develop --head HEAD --format textpassed.