Merge branch 'develop'
This commit is contained in:
commit
27ecf48ac0
@ -7,3 +7,10 @@ add_executable (sim_performance
|
|||||||
)
|
)
|
||||||
target_link_libraries (sim_performance LINK_PUBLIC scc)
|
target_link_libraries (sim_performance LINK_PUBLIC scc)
|
||||||
target_link_libraries (sim_performance LINK_PUBLIC ${Boost_LIBRARIES} )
|
target_link_libraries (sim_performance LINK_PUBLIC ${Boost_LIBRARIES} )
|
||||||
|
|
||||||
|
#Mateo Done erst count 16384
|
||||||
|
foreach(x RANGE 1 10)
|
||||||
|
add_test(NAME sim_performance_16x16_${x} COMMAND sim_performance)
|
||||||
|
add_test(NAME sim_performance_16x16_${x} COMMAND sim_performance --dim 32 --count 50000)
|
||||||
|
add_test(NAME sim_performance_16x16_${x} COMMAND sim_performance --dim 64 --count 100000)
|
||||||
|
endforeach()
|
@ -47,7 +47,7 @@ int sc_main(int argc, char *argv[]) {
|
|||||||
("help,h", "Print help message")
|
("help,h", "Print help message")
|
||||||
("debug,d", "set debug level")
|
("debug,d", "set debug level")
|
||||||
("trace,t", "trace SystemC signals")
|
("trace,t", "trace SystemC signals")
|
||||||
("dim", po::value<uint8_t>()->default_value(16))
|
("dim", po::value<unsigned>()->default_value(16))
|
||||||
("count", po::value<unsigned>()->default_value(16384));
|
("count", po::value<unsigned>()->default_value(16384));
|
||||||
// clang-format on
|
// clang-format on
|
||||||
po::variables_map vm;
|
po::variables_map vm;
|
||||||
@ -80,7 +80,7 @@ int sc_main(int argc, char *argv[]) {
|
|||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
perf_estimator estimator;
|
perf_estimator estimator;
|
||||||
auto const count=vm["count"].as<unsigned>();
|
auto const count=vm["count"].as<unsigned>();
|
||||||
auto const dim = vm["dim"].as<uint8_t>();
|
auto const dim = vm["dim"].as<unsigned>();
|
||||||
SCCINFO()<<"Instantiating "<<(unsigned)dim<<"x"<<(unsigned)dim<<" matrix and executing "<<count<<" accesses";
|
SCCINFO()<<"Instantiating "<<(unsigned)dim<<"x"<<(unsigned)dim<<" matrix and executing "<<count<<" accesses";
|
||||||
top i_top("i_top", dim, count);
|
top i_top("i_top", dim, count);
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user