-
Notifications
You must be signed in to change notification settings - Fork 9
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
#410: Dependent Epochs rewritten #2204
Open
lifflander
wants to merge
20
commits into
develop
Choose a base branch
from
410-new-dep-epochs
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.
Open
Changes from 10 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ccd5afd
#410: epoch: change unused InsertEpoch to DependentEpoch
lifflander b393469
#410: epoch: add function to bit-combine epoch category bits
lifflander 9a1efe8
#410: termination: add isDep check
lifflander 72fbfec
#410: term: implement dependent epochs
lifflander 5cd8599
#410: test: add release dependent epoch test
lifflander 10147f4
#410: reduce: fix warning
lifflander 1db25fa
#410: epoch: add test, move pending epochs to scheduler
lifflander a9816c6
#410: epoch: rework deps, objgroup dep epochs, scheduler buffers
lifflander 4de8a74
#410: objgroup: implement objgroup proxy functions for dependent epochs
lifflander bfdc3f4
#410: collection: add dependent epochs to collections, system message…
lifflander 3c1ac7f
#410: test: add new test for dep epochs and collections
lifflander cdf69ab
#410: collection: add missing header include
lifflander 9764708
#410: tests: cleanup tests, fix name collison
lifflander a974aba
#410: tests: fix license
lifflander 3e76af5
#410: tests: fix some small compilation errors
lifflander 3d2b117
#410: collection: switch broadcast after system broadcast to user msg
lifflander f746269
#410: collection: fix missing system message designation
lifflander cb2b519
#410: tests: rewrite dep epoch test to fix logic error
lifflander 4b3a9c6
#410: termination: remove unneeded code, cleanup scheduler
lifflander 48f7a8c
#410: termination: cleanup more code---remove unecessary condition
lifflander 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 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 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 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 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 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 |
---|---|---|
|
@@ -72,7 +72,7 @@ namespace vt { namespace epoch { | |
struct EpochManip : runtime::component::Component<EpochManip> { | ||
using CapturedContextType = term::ParentEpochCapture; | ||
|
||
EpochManip(); | ||
EpochManip() = default; | ||
|
||
std::string name() override { return "EpochManip"; } | ||
|
||
|
@@ -89,6 +89,24 @@ struct EpochManip : runtime::component::Component<EpochManip> { | |
*/ | ||
static bool isRooted(EpochType const& epoch); | ||
|
||
/** | ||
* \brief Gets whether an epoch is DS or onot | ||
* | ||
* \param[in] epoch the epoch | ||
* | ||
* \return whether it is DS | ||
*/ | ||
static bool isDS(EpochType epoch); | ||
|
||
/** | ||
* \brief Gets whether an epoch is dependent or onot | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo. |
||
* | ||
* \param[in] epoch the epoch | ||
* | ||
* \return whether it is dependent | ||
*/ | ||
static bool isDep(EpochType epoch); | ||
|
||
/** | ||
* \brief Gets the \c eEpochCategory of a given epoch | ||
* | ||
|
@@ -152,6 +170,14 @@ struct EpochManip : runtime::component::Component<EpochManip> { | |
*/ | ||
static void setSeq(EpochType& epoch, EpochType::ImplType const seq); | ||
|
||
/** | ||
* \brief Combine eEpochCategory elements | ||
* | ||
* \param[in] c1 category 1 | ||
* \param[in] c2 category 2 | ||
*/ | ||
static eEpochCategory makeCat(eEpochCategory c1, eEpochCategory c2); | ||
|
||
/* | ||
* General (stateless) methods for creating a epoch with certain properties | ||
* based on a current sequence number | ||
|
@@ -250,10 +276,12 @@ struct EpochManip : runtime::component::Component<EpochManip> { | |
} | ||
|
||
private: | ||
// epoch window container for specific archetyped epochs | ||
std::unordered_map<EpochType,std::unique_ptr<EpochWindow>> terminated_epochs_; | ||
// epoch window for basic collective epochs | ||
std::unique_ptr<EpochWindow> terminated_collective_epochs_ = nullptr; | ||
/// epoch window container for specific archetyped epochs | ||
std::unordered_map<EpochType, std::unique_ptr<EpochWindow>> terminated_epochs_; | ||
/// epoch window for basic collective epochs | ||
std::unordered_map< | ||
EpochType, std::unique_ptr<EpochWindow> | ||
> terminated_collective_epochs_; | ||
}; | ||
|
||
}} /* end namespace vt::epoch */ | ||
|
This file contains 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 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 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 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo.