Skip to content

Commit

Permalink
PaRSEC backend: offload reductions to dedicated task
Browse files Browse the repository at this point in the history
When we encounter a streaming terminal we schedule a dedicated
reducer task. Subsequent inputs are put into a LIFO. Once the
reducer task runs it will process all available inputs for that
terminal but will not block waiting for all inputs. In the
worst case, we create N tasks (one for each input), likely less.

Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Jun 5, 2023
1 parent 0433454 commit 35a1002
Show file tree
Hide file tree
Showing 2 changed files with 319 additions and 47 deletions.
3 changes: 2 additions & 1 deletion tests/unit/fibonacci.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ TEST_CASE("Fibonacci", "[fib][core]") {
const auto F_n_plus_2 = F_n_plus_1 + F_n;
ttg::sendv<1>(F_n_plus_1, outs);
ttg::send<0>(F_n_plus_2, F_n_plus_1, outs);
} else
} else {
ttg::finalize<1>(outs);
}
},
ttg::edges(F2F), ttg::edges(F2F, F2P));
auto print_op = ttg::make_tt(
Expand Down
Loading

0 comments on commit 35a1002

Please sign in to comment.