| 50 | } |
| 51 | |
| 52 | std::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 | |
| 61 | void calculate_via_transwarp(tw::task<double>& task) { |
| 62 | task.schedule_all(); |
no test coverage detected