-
Notifications
You must be signed in to change notification settings - Fork 8
modularization #477
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
evaleev
wants to merge
6
commits into
master
Choose a base branch
from
evaleev/feature/target-reord
base: master
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.
Open
modularization #477
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
91c22f6
dox typos
evaleev 80a8e9f
start of the saga: avoid needless structured binding capture by a lambda
evaleev 48abc30
modularization of SeQuant to get rid of unnecessary dependence of con…
evaleev 48420ff
[cmake] PR 477 1st round review changes:
evaleev c3e7dbe
assert_failed + abort_msg moved to macros.cpp
evaleev f7db504
default_context_manipulation_threadsafe moved to context.cpp, no long…
evaleev 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
SeQuant/core/optimize/fusion.cpp → SeQuant/core/eval/optimize/fusion.cpp
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
File renamed without changes.
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,43 @@ | ||
| // | ||
| // Created by Eduard Valeyev on 7/31/23 | ||
| // | ||
|
|
||
| #include <SeQuant/core/utility/macros.hpp> | ||
|
|
||
| #include <cstdlib> | ||
| #include <iostream> | ||
| #include <sstream> | ||
|
|
||
| #define SEQUANT_ASSERT_BEHAVIOR \ | ||
| SEQUANT_CONCAT(SEQUANT_ASSERT_, SEQUANT_ASSERT_BEHAVIOR_) | ||
|
|
||
| namespace sequant { | ||
|
|
||
| #ifdef SEQUANT_ASSERT_ENABLED | ||
| void assert_failed(const std::string &errmsg, | ||
| const std::source_location location) { | ||
| #if SEQUANT_ASSERT_BEHAVIOR == SEQUANT_ASSERT_THROW | ||
| std::ostringstream oss; | ||
| oss << errmsg << " at " << location.file_name() << ":" << location.line() | ||
| << " in function '" << location.function_name() << "'"; | ||
| throw sequant::Exception(oss.str()); | ||
| #elif SEQUANT_ASSERT_BEHAVIOR == SEQUANT_ASSERT_ABORT | ||
| std::cerr << errmsg << " at " << location.file_name() << ":" | ||
| << location.line() << " in function '" << location.function_name() | ||
| << "'" << std::endl; | ||
| std::abort(); | ||
| #endif | ||
| } | ||
| #else | ||
| void assert_failed(const std::string &, const std::source_location) {} | ||
| #endif | ||
|
|
||
| [[noreturn]] void abort_msg(const std::string &errmsg, | ||
| const std::source_location location) { | ||
| std::cerr << errmsg << " at " << location.file_name() << ":" | ||
| << location.line() << " in function '" << location.function_name() | ||
| << "'"; | ||
| std::abort(); | ||
| } | ||
|
|
||
| } // namespace sequant |
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
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.