forked from etwest/DynamicQueriesCC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
437 lines (381 loc) · 17.3 KB
/
Copy pathCMakeLists.txt
File metadata and controls
437 lines (381 loc) · 17.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
cmake_minimum_required(VERSION 3.15)
project(DynamicQueriesCC)
include (FetchContent)
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost REQUIRED COMPONENTS regex context)
# Force IPO is enabled
cmake_policy(SET CMP0069 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS ON)
#set(INTERPROCEDURAL_OPTIMIZATION TRUE)
option(USE_RESIZEABLE_SKETCH "Use ResizeableSketchColumn for test targets" OFF)
option(USE_PARALLEL_HYBRID "Use ParallelConnectivityManager instead of SerialConnectivityManager for hybrid benchmarks" OFF)
option(USE_HYBRID_BATCH_MPI_TESTS "Use BatchInputNode/BatchTierNode backend in hybrid_mpi_dynamicCC_tests" OFF)
option(USE_SKETCHLESS_QUERY_ETT "Use SketchlessEulerTourTree for connectivity queries (otherwise use LCT-backed query view)" ON)
set(LCT_QUERY_MODE "EAGER" CACHE STRING "LCT query mode: EAGER, LAZY, WORST_CASE")
set_property(CACHE LCT_QUERY_MODE PROPERTY STRINGS EAGER LAZY WORST_CASE)
if(USE_SKETCHLESS_QUERY_ETT)
add_compile_definitions(USE_SKETCHLESS_QUERY_ETT=1)
else()
add_compile_definitions(USE_SKETCHLESS_QUERY_ETT=0)
endif()
if(LCT_QUERY_MODE STREQUAL "EAGER")
add_compile_definitions(LCT_QUERY_MODE=0)
elseif(LCT_QUERY_MODE STREQUAL "LAZY")
add_compile_definitions(LCT_QUERY_MODE=1)
elseif(LCT_QUERY_MODE STREQUAL "WORST_CASE")
add_compile_definitions(LCT_QUERY_MODE=2)
else()
message(FATAL_ERROR "Invalid LCT_QUERY_MODE='${LCT_QUERY_MODE}'. Expected EAGER, LAZY, or WORST_CASE.")
endif()
# Make the default build type Release. If user or another
# project sets a different value than use that
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "Setting build type to default -- Release")
set(CMAKE_BUILD_TYPE "Release" CACHE
STRING "Choose the type of build." FORCE)
endif()
message(STATUS "DynamicQueries Build Type: ${CMAKE_BUILD_TYPE}")
# controversial choice: return-type warnings should be promoted to errors
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
message("Adding GNU compiler flags")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall -Werror=return-type -Wno-error=stringop-overflow -Wno-stringop-overflow")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
message("Adding MSVC compiler flags")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Wall")
else()
message("${CMAKE_CXX_COMPILER_ID} not recognized, no flags added")
endif()
# add_compile_options(-fsanitize=address)
# add_link_options(-fsanitize=address)
# add_compile_options(-fsanitize=undefined)
# add_link_options(-fsanitize=undefined)
######
# Get MPI for distributed communication
######
find_package(MPI REQUIRED)
include_directories(${MPI_INCLUDE_PATH})
add_definitions(-DOMPI_SKIP_MPICXX)
if(MPI_CXX_FOUND)
message("Found MPI_CXX")
endif()
set(TBB_TEST OFF CACHE BOOL "" FORCE)
set(TBB_STRICT OFF CACHE BOOL "Disable strict warnings as errors for TBB" FORCE)
FetchContent_Declare(
onetbb
GIT_REPOSITORY https://github.com/oneapi-src/oneTBB.git
GIT_TAG v2022.3.0
)
FetchContent_MakeAvailable(onetbb)
# Create dummy TBBConfig.cmake so Parlay's find_package(TBB) succeeds.
if(NOT TARGET TBB::tbb)
add_library(TBB::tbb ALIAS tbb)
endif()
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/TBBConfig.cmake" "
if(NOT TARGET TBB::tbb)
add_library(TBB::tbb ALIAS tbb)
endif()
")
set(TBB_DIR "${CMAKE_CURRENT_BINARY_DIR}" CACHE PATH "Path to dummy TBBConfig" FORCE)
# Install GraphZeppelin Project
FetchContent_Declare(
GraphZeppelinVerifyCC
GIT_REPOSITORY https://github.com/GraphStreamingProject/GraphZeppelin
#GIT_TAG 047b89f5577043b3ec69b91c092c1f1ec0b04816
# GIT_TAG 6c11903714edf1993e920d6d5ed8bde3ecc0963d
# GIT_TAG c1419488ac688395cda5c72808bf2a2708b1085e
GIT_TAG 331f2258247e9edbb8cc23143ee5aa1de4549e90
)
add_compile_definitions(GLOG_USE_GLOG_EXPORT)
# Install DynamicConnectivity Package
FetchContent_Declare(
dycon
GIT_REPOSITORY https://github.com/GraphStreamingProject/DynamicConnectivity
GIT_TAG 733d99e4a6985ef656df716ffe23719a1f29786b
)
# TODO - THERE should be a better way to do this that doesn't rely on populate and add_subdirectory
FetchContent_Populate(dycon)
add_subdirectory(${dycon_SOURCE_DIR} ${dycon_BINARY_DIR} EXCLUDE_FROM_ALL)
FetchContent_MakeAvailable(GraphZeppelinVerifyCC)
FetchContent_Declare(abseil-cpp
GIT_REPOSITORY git@github.com:abseil/abseil-cpp.git
GIT_TAG master
)
FetchContent_MakeAvailable(abseil-cpp)
# Fetch mimalloc
set(MI_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(MI_BUILD_SHARED ON CACHE BOOL "" FORCE)
set(MI_BUILD_STATIC OFF CACHE BOOL "" FORCE)
FetchContent_Declare(
mimalloc
GIT_REPOSITORY https://github.com/microsoft/mimalloc.git
GIT_TAG v2.1.2
)
FetchContent_MakeAvailable(mimalloc)
# add_executable(ufo_tests
# test/test_runner.cpp
# test/ufo_tree_test.cpp
# )
# target_include_directories(ufo_tests PUBLIC include)
# target_link_libraries(ufo_tests PRIVATE GraphZeppelinVerifyCC parlay absl::flat_hash_set)
add_executable(dynamicCC_tests
test/test_runner.cpp
test/skiplist_test.cpp
test/euler_tour_tree_test.cpp
test/link_cut_tree_test.cpp
test/graph_tiers_test.cpp
test/ufo_tree_test.cpp
test/lct_cutset_test.cpp
test/cutset_benchmarks.cpp
src/skiplist.cpp
src/euler_tour_tree.cpp
src/sketchless_skiplist.cpp
src/sketchless_euler_tour_tree.cpp
src/link_cut_tree.cpp
src/graph_tiers.cpp
src/batch_tiers.cpp
)
target_include_directories(dynamicCC_tests PUBLIC include ${MPI_C_INCLUDE_PATH})
add_dependencies(dynamicCC_tests GraphZeppelinVerifyCC dycon)
# force mimalloc linking on tests, TODO - we should probably just leave this as a user option? not sure / TBD.
# TODO - evaluate performance impact of mimalloc.
target_link_libraries(dynamicCC_tests PRIVATE GraphZeppelinVerifyCC dycon ${MPI_LIBRARIES} tbb parlay -Wl,--no-as-needed mimalloc -Wl,--as-needed)
target_compile_options(dynamicCC_tests PUBLIC -fopenmp)
target_link_options(dynamicCC_tests PUBLIC -fopenmp)
add_executable(mpi_dynamicCC_tests
test/mpi_test_runner.cpp
test/mpi_graph_tiers_test.cpp
src/skiplist.cpp
src/sketchless_skiplist.cpp
src/euler_tour_tree.cpp
src/sketchless_euler_tour_tree.cpp
src/link_cut_tree.cpp
src/input_node.cpp
src/tier_node.cpp
)
target_compile_definitions(mpi_dynamicCC_tests PUBLIC SKETCH_BUFFER_SIZE=${SKETCH_BUFFER_SIZE})
target_include_directories(mpi_dynamicCC_tests PUBLIC include ${MPI_C_INCLUDE_PATH})
add_dependencies(mpi_dynamicCC_tests GraphZeppelinVerifyCC dycon)
target_link_libraries(mpi_dynamicCC_tests PRIVATE GraphZeppelinVerifyCC dycon ${MPI_LIBRARIES})
target_compile_options(mpi_dynamicCC_tests PUBLIC -fopenmp)
target_link_options(mpi_dynamicCC_tests PUBLIC -fopenmp)
add_executable(mpi_batch_dynamicCC_tests
test/mpi_test_runner.cpp
test/mpi_batch_graph_tiers_test.cpp
src/skiplist.cpp
src/sketchless_skiplist.cpp
src/euler_tour_tree.cpp
src/sketchless_euler_tour_tree.cpp
src/link_cut_tree.cpp
src/batch_input_node.cpp
src/batch_tier_node.cpp
)
target_compile_definitions(mpi_batch_dynamicCC_tests PUBLIC SKETCH_BUFFER_SIZE=${SKETCH_BUFFER_SIZE})
target_include_directories(mpi_batch_dynamicCC_tests PUBLIC include ${MPI_C_INCLUDE_PATH})
add_dependencies(mpi_batch_dynamicCC_tests GraphZeppelinVerifyCC dycon)
target_link_libraries(mpi_batch_dynamicCC_tests PRIVATE GraphZeppelinVerifyCC dycon ${MPI_LIBRARIES})
target_compile_options(mpi_batch_dynamicCC_tests PUBLIC -fopenmp)
target_link_options(mpi_batch_dynamicCC_tests PUBLIC -fopenmp)
add_executable(hybrid_mpi_dynamicCC_tests
test/hybrid_test_runner.cpp
test/hybrid_tests.cpp
src/skiplist.cpp
src/sketchless_skiplist.cpp
src/euler_tour_tree.cpp
src/sketchless_euler_tour_tree.cpp
src/link_cut_tree.cpp
)
if(USE_HYBRID_BATCH_MPI_TESTS)
target_sources(hybrid_mpi_dynamicCC_tests PRIVATE
src/batch_input_node.cpp
src/batch_tier_node.cpp
)
target_compile_definitions(hybrid_mpi_dynamicCC_tests PUBLIC HYBRID_USE_BATCH_MPI_TESTS=1)
else()
target_sources(hybrid_mpi_dynamicCC_tests PRIVATE
src/input_node.cpp
src/tier_node.cpp
)
target_compile_definitions(hybrid_mpi_dynamicCC_tests PUBLIC HYBRID_USE_BATCH_MPI_TESTS=0)
endif()
target_compile_definitions(hybrid_mpi_dynamicCC_tests PUBLIC SKETCH_BUFFER_SIZE=${SKETCH_BUFFER_SIZE})
target_include_directories(hybrid_mpi_dynamicCC_tests PUBLIC include ${MPI_C_INCLUDE_PATH})
add_dependencies(hybrid_mpi_dynamicCC_tests GraphZeppelinVerifyCC dycon)
target_link_libraries(hybrid_mpi_dynamicCC_tests PRIVATE GraphZeppelinVerifyCC dycon ${MPI_LIBRARIES})
target_compile_options(hybrid_mpi_dynamicCC_tests PUBLIC -fopenmp)
target_link_options(hybrid_mpi_dynamicCC_tests PUBLIC -fopenmp)
add_executable(hybrid_shmem_dynamicCC_tests
test/hybrid_shmem_test_runner.cpp
test/hybrid_shmem_tests.cpp
src/skiplist.cpp
src/graph_tiers.cpp
src/batch_tiers.cpp
src/sketchless_skiplist.cpp
src/euler_tour_tree.cpp
src/sketchless_euler_tour_tree.cpp
src/link_cut_tree.cpp
# src/input_node.cpp
# src/tier_node.cpp
)
target_compile_definitions(hybrid_shmem_dynamicCC_tests PUBLIC SKETCH_BUFFER_SIZE=${SKETCH_BUFFER_SIZE})
target_include_directories(hybrid_shmem_dynamicCC_tests PUBLIC include ${MPI_C_INCLUDE_PATH})
add_dependencies(hybrid_shmem_dynamicCC_tests GraphZeppelinVerifyCC dycon)
target_link_libraries(hybrid_shmem_dynamicCC_tests PRIVATE GraphZeppelinVerifyCC dycon ${MPI_LIBRARIES} tbb -Wl,--no-as-needed mimalloc -Wl,--as-needed)
target_compile_options(hybrid_shmem_dynamicCC_tests PUBLIC -fopenmp)
target_link_options(hybrid_shmem_dynamicCC_tests PUBLIC -fopenmp)
if(USE_RESIZEABLE_SKETCH)
target_compile_definitions(dynamicCC_tests PUBLIC USE_RESIZEABLE_SKETCH=1)
target_compile_definitions(mpi_dynamicCC_tests PUBLIC USE_RESIZEABLE_SKETCH=1)
target_compile_definitions(mpi_batch_dynamicCC_tests PUBLIC USE_RESIZEABLE_SKETCH=1)
target_compile_definitions(hybrid_mpi_dynamicCC_tests PUBLIC USE_RESIZEABLE_SKETCH=1)
target_compile_definitions(hybrid_shmem_dynamicCC_tests PUBLIC USE_RESIZEABLE_SKETCH=1)
endif()
#######
# TODO: Is MPI INCLUDE PATH necessary?
if(MPI_COMPILE_FLAGS)
set_target_properties(mpi_dynamicCC_tests PROPERTIES
COMPILE_FLAGS "${MPI_COMPILE_FLAGS}")
endif()
if(MPI_LINK_FLAGS)
set_target_properties(mpi_dynamicCC_tests PROPERTIES
LINK_FLAGS "${MPI_LINK_FLAGS}")
endif()
#######
#####################################################################
# Benchmark targets
#####################################################################
# Common source files for each backend
set(SHMEM_BENCH_SOURCES
src/skiplist.cpp
src/sketchless_skiplist.cpp
src/sketchless_euler_tour_tree.cpp
)
set(MPI_BENCH_SOURCES
src/skiplist.cpp
src/sketchless_skiplist.cpp
src/sketchless_euler_tour_tree.cpp
)
# Function: add_bench_targets(NAME CUPCAKE_ALGO CUTSET_DS USE_HYBRID USE_RESIZEABLE)
# Creates bench_speed_<NAME> and bench_profile_<NAME>
function(add_bench_targets NAME CUPCAKE_ALGO CUTSET_DS USE_HYBRID USE_RESIZEABLE)
# Determine source files and link libraries based on tier algo
if(CUPCAKE_ALGO STREQUAL "mpi_tiers" OR CUPCAKE_ALGO STREQUAL "MPI_TIERS"
OR CUPCAKE_ALGO STREQUAL "mpi_batch_tiers" OR CUPCAKE_ALGO STREQUAL "MPI_BATCH_TIERS")
set(_SOURCES ${MPI_BENCH_SOURCES})
set(_EXTRA_LIBS ${MPI_LIBRARIES} -Wl,--no-as-needed mimalloc -Wl,--as-needed)
else()
set(_SOURCES ${SHMEM_BENCH_SOURCES})
set(_EXTRA_LIBS tbb -Wl,--no-as-needed mimalloc -Wl,--as-needed)
endif()
foreach(BENCH_TYPE speed profile)
set(TARGET_NAME "bench_${BENCH_TYPE}_${NAME}")
add_executable(${TARGET_NAME}
test/bench_${BENCH_TYPE}.cpp
${_SOURCES}
)
# Compile definitions for config selection
target_compile_definitions(${TARGET_NAME} PRIVATE
CUPCAKE_ALGO_${CUPCAKE_ALGO}=1
CUTSET_DS_${CUTSET_DS}=1
USE_HYBRID=${USE_HYBRID}
SKETCH_BUFFER_SIZE=${SKETCH_BUFFER_SIZE}
)
if(USE_RESIZEABLE)
target_compile_definitions(${TARGET_NAME} PRIVATE USE_RESIZEABLE_SKETCH=1)
endif()
if(FIXED_NONHYBRID_VECTOR_CONTAINERS AND (NOT USE_HYBRID))
target_compile_definitions(${TARGET_NAME} PRIVATE USE_VECTOR_DEFAULT_CONTAINER=1)
endif()
if(USE_PARALLEL_HYBRID AND USE_HYBRID)
target_compile_definitions(${TARGET_NAME} PRIVATE USE_PARALLEL_HYBRID=1)
endif()
if(ENABLE_DIRECT_SKETCH AND USE_HYBRID)
target_compile_definitions(${TARGET_NAME} PRIVATE ENABLE_DIRECT_SKETCH=1)
endif()
target_include_directories(${TARGET_NAME} PUBLIC include ${MPI_C_INCLUDE_PATH})
add_dependencies(${TARGET_NAME} GraphZeppelinVerifyCC dycon)
target_link_libraries(${TARGET_NAME} PRIVATE
GraphZeppelinVerifyCC dycon ${MPI_LIBRARIES} ${_EXTRA_LIBS}
)
target_compile_options(${TARGET_NAME} PUBLIC -fopenmp)
target_link_options(${TARGET_NAME} PUBLIC -fopenmp)
endforeach()
endfunction()
# ---- Generate benchmark targets ----
option(BENCH_ALL "Build ALL algo×cutset×sketch×hybrid benchmark configs" OFF)
option(ENABLE_DIRECT_SKETCH "Enable the direct-to-sketch shortcut in hybrid managers" ON)
option(FIXED_NONHYBRID_VECTOR_CONTAINERS "Use vector-backed default DS containers for non-hybrid bench targets" ON)
if(BENCH_ALL)
# Full matrix: 3 algos × 3 cutsets × 2 sketches × 2 hybrid = 36 configs
foreach(ALGO_PAIR "batch;BATCH_TIERS" "graph;GRAPH_TIERS" "mpi;MPI_TIERS" "mpi_batch;MPI_BATCH_TIERS")
list(GET ALGO_PAIR 0 ALGO_LABEL)
list(GET ALGO_PAIR 1 ALGO_FLAG)
foreach(CUTSET_PAIR "ufo;UFO" "lct;LCT" "ett;ETT")
list(GET CUTSET_PAIR 0 CUTSET_LABEL)
list(GET CUTSET_PAIR 1 CUTSET_FLAG)
foreach(SKETCH_PAIR "fixed;0" "resizeable;1")
list(GET SKETCH_PAIR 0 SKETCH_LABEL)
list(GET SKETCH_PAIR 1 SKETCH_FLAG)
add_bench_targets(${ALGO_LABEL}_${CUTSET_LABEL}_${SKETCH_LABEL}
${ALGO_FLAG} ${CUTSET_FLAG} 0 ${SKETCH_FLAG})
add_bench_targets(${ALGO_LABEL}_${CUTSET_LABEL}_${SKETCH_LABEL}_hybrid
${ALGO_FLAG} ${CUTSET_FLAG} 1 ${SKETCH_FLAG})
endforeach()
endforeach()
endforeach()
else()
# Default: MPI + Graph tiers × {UFO, LCT, ETT} × {fixed, resizeable}, pure cupcake + hybrid
add_bench_targets(mpi_ufo_fixed MPI_TIERS UFO 0 0)
add_bench_targets(mpi_lct_fixed MPI_TIERS LCT 0 0)
add_bench_targets(mpi_ett_fixed MPI_TIERS ETT 0 0)
add_bench_targets(mpi_ufo_fixed_hybrid MPI_TIERS UFO 1 0)
add_bench_targets(mpi_lct_fixed_hybrid MPI_TIERS LCT 1 0)
add_bench_targets(mpi_ett_fixed_hybrid MPI_TIERS ETT 1 0)
add_bench_targets(mpi_ufo_resizeable MPI_TIERS UFO 0 1)
add_bench_targets(mpi_lct_resizeable MPI_TIERS LCT 0 1)
add_bench_targets(mpi_ett_resizeable MPI_TIERS ETT 0 1)
add_bench_targets(mpi_ufo_resizeable_hybrid MPI_TIERS UFO 1 1)
add_bench_targets(mpi_lct_resizeable_hybrid MPI_TIERS LCT 1 1)
add_bench_targets(mpi_ett_resizeable_hybrid MPI_TIERS ETT 1 1)
# Graph Tiers (shared-memory)
# add_bench_targets(graph_ufo_fixed GRAPH_TIERS UFO 0 0)
# add_bench_targets(graph_lct_fixed GRAPH_TIERS LCT 0 0)
# add_bench_targets(graph_ett_fixed GRAPH_TIERS ETT 0 0)
# add_bench_targets(graph_ufo_fixed_hybrid GRAPH_TIERS UFO 1 0)
# add_bench_targets(graph_lct_fixed_hybrid GRAPH_TIERS LCT 1 0)
# add_bench_targets(graph_ett_fixed_hybrid GRAPH_TIERS ETT 1 0)
# add_bench_targets(graph_ufo_resizeable GRAPH_TIERS UFO 0 1)
# add_bench_targets(graph_lct_resizeable GRAPH_TIERS LCT 0 1)
# add_bench_targets(graph_ett_resizeable GRAPH_TIERS ETT 0 1)
# add_bench_targets(graph_ufo_resizeable_hybrid GRAPH_TIERS UFO 1 1)
# add_bench_targets(graph_lct_resizeable_hybrid GRAPH_TIERS LCT 1 1)
# add_bench_targets(graph_ett_resizeable_hybrid GRAPH_TIERS ETT 1 1)
# Add more one-liners here as needed, e.g.:
# add_bench_targets(batch_ufo_fixed BATCH_TIERS UFO 0 0)
add_bench_targets(cf CF NONE 0 0)
# MPI Batch Tiers
add_bench_targets(mpi_batch_ufo_fixed MPI_BATCH_TIERS UFO 0 0)
add_bench_targets(mpi_batch_lct_fixed MPI_BATCH_TIERS LCT 0 0)
add_bench_targets(mpi_batch_ett_fixed MPI_BATCH_TIERS ETT 0 0)
add_bench_targets(mpi_batch_ufo_fixed_hybrid MPI_BATCH_TIERS UFO 1 0)
add_bench_targets(mpi_batch_lct_fixed_hybrid MPI_BATCH_TIERS LCT 1 0)
add_bench_targets(mpi_batch_ett_fixed_hybrid MPI_BATCH_TIERS ETT 1 0)
add_bench_targets(mpi_batch_ufo_resizeable MPI_BATCH_TIERS UFO 0 1)
add_bench_targets(mpi_batch_lct_resizeable MPI_BATCH_TIERS LCT 0 1)
add_bench_targets(mpi_batch_ett_resizeable MPI_BATCH_TIERS ETT 0 1)
add_bench_targets(mpi_batch_ufo_resizeable_hybrid MPI_BATCH_TIERS UFO 1 1)
add_bench_targets(mpi_batch_lct_resizeable_hybrid MPI_BATCH_TIERS LCT 1 1)
add_bench_targets(mpi_batch_ett_resizeable_hybrid MPI_BATCH_TIERS ETT 1 1)
endif()
#####################################################################
# Utility tools
#####################################################################
add_executable(stream_to_static_graph tools/stream_to_static_graph.cpp)
target_include_directories(stream_to_static_graph PUBLIC include ${MPI_C_INCLUDE_PATH})
target_compile_features(stream_to_static_graph PRIVATE cxx_std_20)
add_dependencies(stream_to_static_graph GraphZeppelinVerifyCC dycon)
target_link_libraries(stream_to_static_graph PRIVATE GraphZeppelinVerifyCC dycon ${MPI_LIBRARIES})
target_compile_options(stream_to_static_graph PUBLIC -fopenmp)
target_link_options(stream_to_static_graph PUBLIC -fopenmp)