Repository navigation
Feature(hsolver): add LOBPCG for plane-wave calculations #8358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Cstandardlib
wants to merge
26
commits into
deepmodeling:develop
Choose a base branch
from
Cstandardlib:feature/lobpcg-pw
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+5,395
−103
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
922a76e
feat(hsolver): add LOBPCG for plane-wave calculations
Cstandardlib 2d3550f
test(io): include LOBPCG in diag_subspace availability expectation
Cstandardlib 42c203b
test(hsolver): use threadsafe death tests
Cstandardlib 14e8c86
test(hsolver): focus LOBPCG tests on functional correctness
Cstandardlib bbc3706
fix(hsolver): honor PW iteration budgets in NSCF
Cstandardlib 2a29c08
fix(hsolver): limit LOBPCG RR backends to LAPACK and ScaLAPACK
Cstandardlib 6617326
test(hsolver): verify LOBPCG eigenpair correspondence
Cstandardlib ee40021
test(pw): pin NSCF reference iteration budgets
Cstandardlib 9af49d3
Merge upstream/develop into feature/lobpcg-pw
Cstandardlib 45eb040
test(hsolver): correct complex float fixture multiplication
Cstandardlib 95a237d
test(hsolver): simplify LOBPCG CMake configuration
Cstandardlib 9a9f084
test(hsolver): streamline LOBPCG test registration
Cstandardlib e20eb0b
test(io): document serial INPUT test registration
Cstandardlib 1959bc5
refactor(test): isolate LOBPCG tests from unrelated backends
Cstandardlib 666fa4d
refactor(hsolver): simplify LOBPCG interfaces and tests
Cstandardlib 5087b4a
Merge branch 'develop' into feature/lobpcg-pw
Cstandardlib bbdbffe
test(base): cover timer scope exits and reuse
Cstandardlib b443f87
Merge branch 'develop' into feature/lobpcg-pw
Cstandardlib 8cf0dc1
Merge branch 'develop' into feature/lobpcg-pw
Cstandardlib 620aef2
test(hsolver): simplify LOBPCG coverage and registration
Cstandardlib e40112d
refactor(hsolver): use explicit types in LOBPCG code and tests
Cstandardlib 4828d12
Merge branch 'develop' into feature/lobpcg-pw
Cstandardlib 087961f
fix(cuda): adapt TRMM to shared transpose helper and aligned scalars
Cstandardlib 827da5b
Merge branch 'develop' into feature/lobpcg-pw
Cstandardlib 56be2ea
Merge upstream/develop into feature/lobpcg-pw
Cstandardlib 68ee5c2
refactor(hsolver): name dense eigensolver backends explicitly
Cstandardlib File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| #include "source_base/timer.h" | ||
|
|
||
| #include <gtest/gtest.h> | ||
| #include <stdexcept> | ||
|
|
||
| namespace | ||
| { | ||
| int timed_return(const bool early) | ||
| { | ||
| ModuleBase::timer::Scope scope("TimerScopeTest", "timed_return"); | ||
| if (early) | ||
| { | ||
| return 1; | ||
| } | ||
| return 2; | ||
| } | ||
|
|
||
| void timed_exception() | ||
| { | ||
| ModuleBase::timer::Scope scope("TimerScopeTest", "timed_exception"); | ||
| throw std::runtime_error("test exception"); | ||
| } | ||
| } // namespace | ||
|
|
||
| TEST(TimerScope, EarlyReturnClosesAndAllowsReuse) | ||
| { | ||
| EXPECT_EQ(timed_return(true), 1); | ||
| const ModuleBase::timer::Timer_One& timer = ModuleBase::timer::timer_pool.at("TimerScopeTest").at("timed_return"); | ||
| EXPECT_TRUE(timer.start_flag); | ||
| EXPECT_EQ(timer.calls, 1U); | ||
| EXPECT_EQ(timed_return(false), 2); | ||
| EXPECT_TRUE(timer.start_flag); | ||
| EXPECT_EQ(timer.calls, 2U); | ||
| ModuleBase::timer::timer_pool.erase("TimerScopeTest"); | ||
| } | ||
|
|
||
| TEST(TimerScope, ExceptionClosesAndAllowsReuse) | ||
| { | ||
| EXPECT_THROW(timed_exception(), std::runtime_error); | ||
| const ModuleBase::timer::Timer_One& timer = ModuleBase::timer::timer_pool.at("TimerScopeTest").at("timed_exception"); | ||
| EXPECT_TRUE(timer.start_flag); | ||
| EXPECT_EQ(timer.calls, 1U); | ||
| EXPECT_THROW(timed_exception(), std::runtime_error); | ||
| EXPECT_TRUE(timer.start_flag); | ||
| EXPECT_EQ(timer.calls, 2U); | ||
| ModuleBase::timer::timer_pool.erase("TimerScopeTest"); | ||
| } |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.