MCPcopy Create free account
hub / github.com/bloomen/transwarp / build_graph

Function build_graph

examples/benchmark_simple.cpp:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52std::shared_ptr<tw::task<double>> build_graph() {
53 auto task0 = tw::make_task(tw::root, func0);
54 auto task1 = tw::make_task(tw::root, func1);
55 auto task2 = tw::make_task(tw::consume, func2, task0, task1);
56 auto task3 = tw::make_task(tw::root, func3);
57 auto task4 = tw::make_task(tw::consume, func4, task2, task3);
58 return task4;
59}
60
61void calculate_via_transwarp(tw::task<double>& task) {
62 task.schedule_all();

Callers 1

benchmark_simpleFunction · 0.70

Calls 1

make_taskFunction · 0.85

Tested by

no test coverage detected