-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
56 lines (38 loc) · 1.42 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
cmake_minimum_required(VERSION 3.5)
project(llis LANGUAGES CXX CUDA)
set(CMAKE_CXX_STANDARD 17)
cmake_policy(SET CMP0105 NEW)
find_package(CUDAToolkit)
include_directories(${CUDAToolkit_INCLUDE_DIRS})
find_package(Boost REQUIRED system context program_options)
find_package(spdlog REQUIRED)
option(TVM_INCLUDE_DIR "Headers directory of TVM")
find_package(tvm)
if(tvm_FOUND)
if(TVM_INCLUDE_DIR)
include_directories(PUBLIC ${TVM_INCLUDE_DIR})
endif(TVM_INCLUDE_DIR)
endif(tvm_FOUND)
option(MEASURE_BLOCK_TIME "Enable measurement of block time" OFF)
if(MEASURE_BLOCK_TIME)
add_definitions(-DLLIS_MEASURE_BLOCK_TIME)
endif(MEASURE_BLOCK_TIME)
option(FINISHED_BLOCK_NOTIFICATION_AGG "Aggregate block notifications" ON)
if(FINISHED_BLOCK_NOTIFICATION_AGG)
add_definitions(-DLLIS_FINISHED_BLOCK_NOTIFICATION_AGG)
endif(FINISHED_BLOCK_NOTIFICATION_AGG)
option(ENABLE_PROFILER "Enable profiler" OFF)
if(ENABLE_PROFILER)
add_definitions(-DLLIS_ENABLE_PROFILER)
endif(ENABLE_PROFILER)
option(PRINT_LAUNCH_JOB_IPC_LATENCY "Print launch job IPC latency" OFF)
if(PRINT_LAUNCH_JOB_IPC_LATENCY)
add_definitions(-DPRINT_LAUNCH_JOB_IPC_LATENCY)
endif(PRINT_LAUNCH_JOB_IPC_LATENCY)
set(CMAKE_INSTALL_RPATH $ORIGIN $ORIGIN/../lib)
include_directories(include)
add_subdirectory(src)
add_subdirectory(app)
add_subdirectory(tests)
add_subdirectory(jobs)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/ DESTINATION include)