Skip to content

Commit

Permalink
#702: CollectionChainSet: add documentation for mergeStepCollective
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Aug 25, 2020
1 parent 7f31685 commit 29c3bd1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/vt/messaging/collection_chain_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,43 @@ class CollectionChainSet final {
theTerm()->finishedEpoch(epoch);
}

/**
* \brief The next collective step of both CollectionChainSets
* to execute across all resident elements across all nodes.
*
* This function ensures that the step is dependent on the previous step
* of both chainsets a and b. Additionally any additional steps in each
* chainset will occur after the merged step.
*
* \pre Each index in CollectionChainset a must exist in CollectionHainset b
*
* \param[in] a the first chainset
* \param[in] b the second chainset
* \param[in] step_action the next step to be executed, dependent on the
* previous step of chainsets a and b
*/
static void mergeStepCollective(CollectionChainSet &a, CollectionChainSet &b,
std::function<PendingSend(Index)> step_action
) {
mergeStepCollective( "", a, b, step_action);
}

/**
* \brief The next collective step of both CollectionChainSets
* to execute across all resident elements across all nodes.
*
* This function ensures that the step is dependent on the previous step
* of both chainsets a and b. Additionally any additional steps in each
* chainset will occur after the merged step.
*
* \pre Each index in CollectionChainset a must exist in CollectionHainset b
*
* \param[in] label the label for the step
* \param[in] a the first chainset
* \param[in] b the second chainset
* \param[in] step_action the next step to be executed, dependent on the
* previous step of chainsets a and b
*/
static void mergeStepCollective(
std::string const& label,
CollectionChainSet &a, CollectionChainSet &b,
Expand Down

0 comments on commit 29c3bd1

Please sign in to comment.