-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCMakeLists.txt
64 lines (52 loc) · 1.51 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
project(DMC LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
find_package(Boost REQUIRED)
include_directories(src)
set(CMAKE_BUILD_TYPE Debug)
set(use_shard_pqueue OFF CACHE BOOL "set USE_SHARD_PQUEUE")
set(num_pqueue_shards 32 CACHE STRING "set NUM_PQUEUE_SHARDS")
set(use_lock_backoff ON CACHE BOOL "set USE_LOCK_BACKOFF")
set(ela_mem_tpt OFF CACHE BOOL "set ELA_MEM_TPT")
set(use_fiber OFF CACHE BOOL "set USE_FIBER")
set(use_penalty ON CACHE BOOL "set USE_PENALTY")
set(multi_policy OFF CACHE BOOL "set MULTI_POLICY")
set(hash_bucket_assoc 8 CACHE STRING "set HASH_BUCKET_ASSOC_NUM")
set(hash_bucket_num 17170432 CACHE STRING "set HASH_NUM_BUCKETS")
if(use_shard_pqueue)
message("set USE_SHARD_PQUEUE")
message("num_pqueue_shards=${num_pqueue_shards}")
else()
message("unset USE_SHARD_PQUEUE")
endif()
if(use_lock_backoff)
message("set USE_LOCK_BACKOFF")
else()
message("unset USE_LOCK_BACKOFF")
endif()
if(ela_mem_tpt)
message("set ELA_MEM_TPT")
else()
message("unset ELA_MEM_TPT")
endif()
if(use_fiber)
message("set USE_FIBER")
else()
message("unset USE_FIBER")
endif()
if(use_penalty)
message("set USE_PENALTY")
else()
message("unset USE_PENALTY")
endif()
if(multi_policy)
message("set MULTI_POLICY")
else()
message("unset MULTI_POLICY")
endif()
message("hash_bucket_assoc=${hash_bucket_assoc}")
message("hash_bucket_num=${hash_bucket_num}")
add_subdirectory(src)
add_subdirectory(experiments)
enable_testing()
add_subdirectory(tests)