Skip to content

Commit 4275023

Browse files
committed
Add subflow header unittest example
1 parent a8c17b4 commit 4275023

File tree

4 files changed

+722
-355
lines changed

4 files changed

+722
-355
lines changed

CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ MESSAGE(STATUS "CMAKE_ROOT: " ${CMAKE_ROOT})
44
# Project name
55
project(Cpp-TaskFlow)
66

7+
# Enable memory test
8+
include(CTest)
9+
710
# Turn on the verbose
811
set(CMAKE_VERBOSE_MAKEFILE ON)
912

@@ -19,7 +22,7 @@ message(STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS})
1922
message(STATUS "CMAKE_EXE_LINKER_FLAGS: " ${CMAKE_EXE_LINKER_FLAGS})
2023

2124
# The version number
22-
set (TASKFLOW_MAJOR_VERSION "1")
25+
set (TASKFLOW_MAJOR_VERSION "2")
2326
set (TASKFLOW_MINOR_VERSION "0")
2427

2528
# add the binary tree to the search path for include files
@@ -54,9 +57,14 @@ list(APPEND EXAMPLE_EXE_LINKER_FLAGS OpenMP::OpenMP_CXX)
5457
message(STATUS "EXAMPLE_CXX_FLAGS: " ${EXAMPLE_CXX_FLAGS})
5558
message(STATUS "EXAMPLE_EXE_LINKER_FLAGS: " ${EXAMPLE_EXE_LINKER_FLAGS})
5659

60+
61+
5762
add_executable(simple example/simple.cpp)
5863
target_link_libraries(simple ${EXAMPLE_EXE_LINKER_FLAGS})
5964

65+
add_executable(subflow example/subflow.cpp)
66+
target_link_libraries(subflow ${EXAMPLE_EXE_LINKER_FLAGS})
67+
6068
add_executable(debug example/debug.cpp)
6169
target_link_libraries(debug ${EXAMPLE_EXE_LINKER_FLAGS})
6270

example/matrix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ void taskflow(const std::vector<size_t>& D) {
195195

196196
auto tbeg = std::chrono::steady_clock::now();
197197

198-
using builder_t = typename tf::Taskflow::Task;
198+
using builder_t = typename tf::Task;
199199

200200
tf::Taskflow tf;
201201

0 commit comments

Comments
 (0)