2020-05-27 16:47:07 +02:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
2021-07-26 16:21:01 +02:00
|
|
|
find_package(fmt)
|
|
|
|
find_package(Boost COMPONENTS program_options REQUIRED)
|
2020-05-27 16:47:07 +02:00
|
|
|
add_executable (sim_performance
|
|
|
|
sc_main.cpp
|
2020-07-14 10:49:06 +02:00
|
|
|
pkt_sender.cpp
|
|
|
|
pkt_switch.cpp
|
2020-05-27 16:47:07 +02:00
|
|
|
top.cpp
|
|
|
|
)
|
|
|
|
target_link_libraries (sim_performance LINK_PUBLIC scc)
|
2021-07-26 16:21:01 +02:00
|
|
|
target_link_libraries (sim_performance LINK_PUBLIC scc fmt::fmt)
|
|
|
|
if(TARGET Boost::program_options)
|
|
|
|
target_link_libraries(sim_performance PUBLIC Boost::program_options)
|
|
|
|
else()
|
|
|
|
target_link_libraries(sim_performance PUBLIC ${BOOST_program_options_LIBRARY})
|
|
|
|
endif()
|
2021-07-23 13:39:27 +02:00
|
|
|
|
|
|
|
#Mateo Done erst count 16384
|
|
|
|
foreach(x RANGE 1 10)
|
|
|
|
add_test(NAME sim_performance_16x16_${x} COMMAND sim_performance)
|
2021-07-26 16:21:01 +02:00
|
|
|
add_test(NAME sim_performance_32x32_${x} COMMAND sim_performance --dim 32 --count 50000)
|
|
|
|
add_test(NAME sim_performance_64x64_${x} COMMAND sim_performance --dim 64 --count 100000)
|
|
|
|
endforeach()
|