-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
47 lines (38 loc) · 2.27 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
cmake_minimum_required(VERSION 3.1)
set( CMAKE_CXX_STANDARD 14 )
set( CMAKE_CXX_FLAGS "-static -Wl,--whole-archive -lpthread -lnuma -Wl,--no-whole-archive")
project(GATHER-SCATTER-EVAL)
set(CMAKE_BINARY_DIR "bin")
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
add_compile_options(-O3 -fno-tree-vectorize -march=sapphirerapids -mavx2 -mavx -mavx512f -mavx512cd)
#add_compile_options(-O3 -fno-tree-vectorize -mavx2 -mavx)
# single threaded benchmarks
add_executable(single_threaded_benchmark_agg_avx_32 src/gather/single_threaded/benchmark_agg_avx_32bit.cpp)
add_executable(single_threaded_benchmark_agg_avx_64 src/gather/single_threaded/benchmark_agg_avx_64bit.cpp)
add_executable(single_threaded_benchmark_agg_avx512_32 src/gather/single_threaded/benchmark_agg_avx512_32bit.cpp)
add_executable(single_threaded_benchmark_agg_avx512_64 src/gather/single_threaded/benchmark_agg_avx512_64bit.cpp)
target_include_directories(single_threaded_benchmark_agg_avx_32 PRIVATE include/)
target_include_directories(single_threaded_benchmark_agg_avx_64 PRIVATE include/)
target_include_directories(single_threaded_benchmark_agg_avx512_32 PRIVATE include/)
target_include_directories(single_threaded_benchmark_agg_avx512_64 PRIVATE include/)
# multi-threaded benchmarks
add_executable(multi_threaded_benchmark_agg_avx_32 src/gather/multi_threaded/benchmark_agg_avx_32bit.cpp)
add_executable(multi_threaded_benchmark_agg_avx_64 src/gather/multi_threaded/benchmark_agg_avx_64bit.cpp)
add_executable(multi_threaded_benchmark_agg_avx512_32 src/gather/multi_threaded/benchmark_agg_avx512_32bit.cpp)
add_executable(multi_threaded_benchmark_agg_avx512_64 src/gather/multi_threaded/benchmark_agg_avx512_64bit.cpp)
target_include_directories(multi_threaded_benchmark_agg_avx_32 PRIVATE include/)
target_include_directories(multi_threaded_benchmark_agg_avx_64 PRIVATE include/)
target_include_directories(multi_threaded_benchmark_agg_avx512_32 PRIVATE include/)
target_include_directories(multi_threaded_benchmark_agg_avx512_64 PRIVATE include/)
TARGET_LINK_LIBRARIES(multi_threaded_benchmark_agg_avx_32
pthread
)
TARGET_LINK_LIBRARIES(multi_threaded_benchmark_agg_avx_64
pthread
)
TARGET_LINK_LIBRARIES(multi_threaded_benchmark_agg_avx512_32
pthread
)
TARGET_LINK_LIBRARIES(multi_threaded_benchmark_agg_avx512_64
pthread
)