|
@ -1,21 +1,20 @@ |
|
|
cmake_minimum_required(VERSION 3.18) |
|
|
cmake_minimum_required(VERSION 3.18) |
|
|
|
|
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules") |
|
|
|
|
|
|
|
|
|
|
|
project(dml-benchmark) |
|
|
project(dml-benchmark) |
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20) |
|
|
set(CMAKE_CXX_STANDARD 20) |
|
|
|
|
|
|
|
|
include_directories("../../DML/include/") |
|
|
|
|
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules") |
|
|
|
|
|
|
|
|
find_package(NUMA REQUIRED) |
|
|
find_package(NUMA REQUIRED) |
|
|
|
|
|
|
|
|
|
|
|
set(DML_SOURCE_DIR "../../DML/include/") |
|
|
set(SOURCES main.cpp) |
|
|
set(SOURCES main.cpp) |
|
|
set(INCLUDES benchmark.hpp statuscode-tostring.hpp task-data.hpp) |
|
|
set(INCLUDES benchmark.hpp statuscode-tostring.hpp task-data.hpp) |
|
|
|
|
|
|
|
|
add_executable(dml-benchmark ${SOURCES}) |
|
|
add_executable(dml-benchmark ${SOURCES}) |
|
|
|
|
|
|
|
|
target_include_directories(dml-benchmark PRIVATE ${NUMA_INCLUDE_DIRS}) |
|
|
|
|
|
|
|
|
target_include_directories(dml-benchmark PRIVATE ${CMAKE_SOURCE_DIR} ${NUMA_INCLUDE_DIRS} ${DML_SOURCE_DIR}) |
|
|
target_link_libraries(dml-benchmark PRIVATE libdml.a pthread ${CMAKE_DL_LIBS} ${NUMA_LIBRARY}) |
|
|
target_link_libraries(dml-benchmark PRIVATE libdml.a pthread ${CMAKE_DL_LIBS} ${NUMA_LIBRARY}) |
|
|
|
|
|
|
|
|
install(TARGETS dml-benchmark DESTINATION ${CMAKE_INSTALL_PREFIX}) |
|
|
install(TARGETS dml-benchmark DESTINATION ${CMAKE_INSTALL_PREFIX}) |