|
@ -56,16 +56,9 @@ add_definitions(-DBARRIER_MODE="${BARRIER_MODE}") |
|
|
eval(BUFFER_LIMIT "unlimited;limited" "unlimited") |
|
|
eval(BUFFER_LIMIT "unlimited;limited" "unlimited") |
|
|
add_definitions(-DBUFFER_LIMIT=$<STREQUAL:${BUFFER_LIMIT},limited>) |
|
|
add_definitions(-DBUFFER_LIMIT=$<STREQUAL:${BUFFER_LIMIT},limited>) |
|
|
|
|
|
|
|
|
eval(QUERY "simple;complex" "simple") |
|
|
|
|
|
add_definitions(-DQUERY=$<STREQUAL:${QUERY},simple>) |
|
|
|
|
|
|
|
|
|
|
|
eval(THREAD_FACTOR "1;2;3;4;5;6;7;8;9;10" "1") |
|
|
eval(THREAD_FACTOR "1;2;3;4;5;6;7;8;9;10" "1") |
|
|
add_definitions(-DTHREAD_GROUP_MULTIPLIER=${THREAD_FACTOR}) |
|
|
add_definitions(-DTHREAD_GROUP_MULTIPLIER=${THREAD_FACTOR}) |
|
|
|
|
|
|
|
|
# build directory |
|
|
|
|
|
set(CMAKE_BINARY_DIR "../bin") #relative to inside build |
|
|
|
|
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}) |
|
|
|
|
|
|
|
|
|
|
|
# include directories |
|
|
# include directories |
|
|
include_directories(src/utils) |
|
|
include_directories(src/utils) |
|
|
include_directories(src/algorithm) |
|
|
include_directories(src/algorithm) |
|
@ -76,4 +69,4 @@ link_libraries(-lnuma -lpthread -l:libdml.a) |
|
|
|
|
|
|
|
|
# Add targets only below |
|
|
# Add targets only below |
|
|
# specify build targets |
|
|
# specify build targets |
|
|
add_executable(MAXBench src/benchmark/MAX_benchmark.cpp) |
|
|
|
|
|
|
|
|
add_executable(MAXBench src/benchmark/MAX_benchmark.cpp) |