Skip to content

Commit 037e33b

Browse files
updated workstealing
1 parent c4950bc commit 037e33b

5 files changed

Lines changed: 97 additions & 96 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ than existing parallel task programming libraries such as [OpenMP Tasking][OpenM
1919

2020
Cpp-Taskflow enables you to implement efficient task decomposition strategies
2121
that incorporate both regular loop-based parallelism
22-
and irregular compute patterns to optimize the cpu performance.
22+
and irregular compute patterns to optimize multicore performance.
2323

2424

2525
| Without Cpp-Taskflow | With Cpp-Taskflow |

example/simple.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// TaskA---->TaskC---->TaskD
55

66
#include <taskflow/taskflow.hpp> // the only include you need
7-
#include <new>
87

98
int main(){
109

example/taskflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,13 @@ auto multiple_dispatches() {
352352
// Function: main
353353
int main(int argc, char* argv[]) {
354354

355+
BENCHMARK("Map Reduce", map_reduce);
355356
BENCHMARK("Multiple Dispatches", multiple_dispatches);
356357
BENCHMARK("Empty Jobs", empty_jobs);
357358
BENCHMARK("Atomic Add", atomic_add);
358359
BENCHMARK("Binary Tree", binary_tree);
359360
BENCHMARK("Linear Graph", linear_graph);
360361
BENCHMARK("Level Graph", level_graph);
361-
BENCHMARK("Map Reduce", map_reduce);
362362
BENCHMARK("Dynamic Stem", dynamic_stem);
363363

364364

image/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
plt.plot(graph_sizes, tbb_runtimes, label='TBB')
4242
plt.plot(graph_sizes, ctf_runtimes, label='Cpp-Taskflow')
4343
plt.title('Graph Algorithm', fontsize=22)
44-
plt.xlabel('graph size (|V|+|E| = # tasks)', fontsize=18)
44+
plt.xlabel('graph size (|V|+|E| ~ # tasks)', fontsize=18)
4545
plt.ylabel('cpu runtime (ms)', fontsize=16)
4646
#plt.xticks(np.arange(len(graph_sizes)), graph_sizes)
4747
plt.legend(fontsize=16)

0 commit comments

Comments
 (0)