Skip to content

Commit

Permalink
Get all existing tests passing again
Browse files Browse the repository at this point in the history
  • Loading branch information
lockshaw committed Oct 4, 2024
1 parent e4073bc commit 5d22c6d
Show file tree
Hide file tree
Showing 10 changed files with 241 additions and 363 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ SPDecompositionTreeNodeType get_node_type(PCGBinarySPDecomposition const &d) {

PCGBinarySPDecomposition make_pcg_series_split(PCGBinarySPDecomposition const &lhs, PCGBinarySPDecomposition const &rhs) {
return PCGBinarySPDecomposition{
leaf_only_make_series_split(lhs.raw_tree, rhs.raw_tree),
leaf_only_binary_sp_tree_make_series_split(lhs.raw_tree, rhs.raw_tree),
};
}

PCGBinarySPDecomposition make_pcg_parallel_split(PCGBinarySPDecomposition const &lhs, PCGBinarySPDecomposition const &rhs) {
return PCGBinarySPDecomposition{
leaf_only_make_parallel_split(lhs.raw_tree, rhs.raw_tree),
leaf_only_binary_sp_tree_make_parallel_split(lhs.raw_tree, rhs.raw_tree),
};
}

PCGBinarySPDecomposition make_pcg_leaf_node(parallel_layer_guid_t const &l) {
return PCGBinarySPDecomposition{
leaf_only_make_leaf_node(l),
leaf_only_binary_sp_tree_make_leaf(l),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace FlexFlow {

template <typename LeafLabel>
LeafOnlyBinarySPDecompositionTree<LeafLabel> leaf_only_make_series_split(LeafOnlyBinarySPDecompositionTree<LeafLabel> const &pre,
LeafOnlyBinarySPDecompositionTree<LeafLabel> leaf_only_binary_sp_tree_make_series_split(LeafOnlyBinarySPDecompositionTree<LeafLabel> const &pre,
LeafOnlyBinarySPDecompositionTree<LeafLabel> const &post) {
return LeafOnlyBinarySPDecompositionTree<LeafLabel>{
make_generic_binary_series_split(
Expand All @@ -18,7 +18,7 @@ LeafOnlyBinarySPDecompositionTree<LeafLabel> leaf_only_make_series_split(LeafOnl
}

template <typename LeafLabel>
LeafOnlyBinarySPDecompositionTree<LeafLabel> leaf_only_make_parallel_split(LeafOnlyBinarySPDecompositionTree<LeafLabel> const &lhs,
LeafOnlyBinarySPDecompositionTree<LeafLabel> leaf_only_binary_sp_tree_make_parallel_split(LeafOnlyBinarySPDecompositionTree<LeafLabel> const &lhs,
LeafOnlyBinarySPDecompositionTree<LeafLabel> const &rhs) {
return LeafOnlyBinarySPDecompositionTree<LeafLabel>{
make_generic_binary_parallel_split(
Expand All @@ -29,12 +29,11 @@ LeafOnlyBinarySPDecompositionTree<LeafLabel> leaf_only_make_parallel_split(LeafO
}

template <typename LeafLabel>
LeafOnlyBinarySPDecompositionTree<LeafLabel> leaf_only_make_leaf_node(LeafLabel const &label) {
LeafOnlyBinarySPDecompositionTree<LeafLabel> leaf_only_binary_sp_tree_make_leaf(LeafLabel const &label) {
return LeafOnlyBinarySPDecompositionTree<LeafLabel>{
make_generic_binary_sp_leaf<
std::monostate,
std::monostate,
LeafLabel>(label),
std::monostate, LeafLabel>(label),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ BinarySPDecompositionTree
make_series_split(BinarySPDecompositionTree const &lhs,
BinarySPDecompositionTree const &rhs) {
return BinarySPDecompositionTree{
leaf_only_make_series_split(lhs.raw_tree, rhs.raw_tree),
leaf_only_binary_sp_tree_make_series_split(lhs.raw_tree, rhs.raw_tree),
};
}

BinarySPDecompositionTree
make_parallel_split(BinarySPDecompositionTree const &lhs,
BinarySPDecompositionTree const &rhs) {
return BinarySPDecompositionTree{
leaf_only_make_parallel_split(lhs.raw_tree, rhs.raw_tree),
leaf_only_binary_sp_tree_make_parallel_split(lhs.raw_tree, rhs.raw_tree),
};
}

BinarySPDecompositionTree make_leaf_node(Node const &n) {
return BinarySPDecompositionTree{
leaf_only_make_leaf_node(n),
leaf_only_binary_sp_tree_make_leaf(n),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace FlexFlow {

template
LeafOnlyBinarySPDecompositionTree<int> leaf_only_make_series_split(LeafOnlyBinarySPDecompositionTree<int> const &,
LeafOnlyBinarySPDecompositionTree<int> leaf_only_binary_sp_tree_make_series_split(LeafOnlyBinarySPDecompositionTree<int> const &,
LeafOnlyBinarySPDecompositionTree<int> const &);
template
LeafOnlyBinarySPDecompositionTree<int> leaf_only_make_parallel_split(LeafOnlyBinarySPDecompositionTree<int> const &,
LeafOnlyBinarySPDecompositionTree<int> leaf_only_binary_sp_tree_make_parallel_split(LeafOnlyBinarySPDecompositionTree<int> const &,
LeafOnlyBinarySPDecompositionTree<int> const &);
template
LeafOnlyBinarySPDecompositionTree<int> leaf_only_make_leaf_node(int const &);
LeafOnlyBinarySPDecompositionTree<int> leaf_only_binary_sp_tree_make_leaf(int const &);

} // namespace FlexFlow

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5d22c6d

Please sign in to comment.