2017-04-03 18:08:12 +02:00
|
|
|
cmake_minimum_required(VERSION 3.7)
|
|
|
|
include(../../cmake/HermitCore-Application.cmake)
|
|
|
|
|
|
|
|
project(hermit_benchmarks C)
|
|
|
|
|
2018-07-22 21:33:30 +02:00
|
|
|
if("${TARGET_ARCH}" STREQUAL "x86_64-hermit")
|
2017-04-03 18:08:12 +02:00
|
|
|
add_executable(basic basic.c)
|
2019-08-06 21:39:08 +02:00
|
|
|
target_compile_options(basic PRIVATE -pthread)
|
|
|
|
target_link_libraries(basic -pthread)
|
2017-04-03 18:08:12 +02:00
|
|
|
|
|
|
|
add_executable(hg hg.c hist.c rdtsc.c run.c init.c opt.c report.c setup.c)
|
|
|
|
|
|
|
|
add_executable(netio netio.c)
|
|
|
|
|
|
|
|
add_executable(RCCE_pingpong RCCE_pingpong.c)
|
|
|
|
target_link_libraries(RCCE_pingpong ircce)
|
2018-07-22 21:33:30 +02:00
|
|
|
endif()
|
2017-04-03 18:08:12 +02:00
|
|
|
|
|
|
|
add_executable(stream stream.c)
|
|
|
|
target_compile_options(stream PRIVATE -fopenmp)
|
|
|
|
target_link_libraries(stream -fopenmp)
|
|
|
|
|
|
|
|
# deployment
|
|
|
|
install_local_targets(extra/benchmarks)
|