MCPcopy Create free account
hub / github.com/bytedance/bolt / reduceRecursive

Function reduceRecursive

bolt/cudf/exec/HashAggregation.cpp:449–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447
448namespace {
449void reduceRecursive(
450 const ::cudf::column_view& column,
451 Aggregator& aggregator,
452 std::vector<std::unique_ptr<::cudf::column>>& intermediateCols) {
453 if (column.num_children() > 0) {
454 for (auto i = 0; i < column.num_children(); ++i) {
455 reduceRecursive(column.child(i), aggregator, intermediateCols);
456 }
457 } else {
458 auto reduced = aggregator.reduce(column);
459 intermediateCols.insert(
460 intermediateCols.end(),
461 std::make_move_iterator(reduced.begin()),
462 std::make_move_iterator(reduced.end()));
463 }
464}
465} // namespace
466
467void HashAggregation::runGlobalAggregation() {

Callers 1

runGlobalAggregationMethod · 0.85

Calls 4

reduceMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected