#include "linear_chain.hpp" #include void linear_chain( const std::string& model, const size_t log_length, const unsigned num_threads, const unsigned num_rounds ) { std::cout << std::setw(12) << "length" << std::setw(12) << "runtime" << std::endl; for(size_t i=1; i<=log_length; ++i) { size_t L = 1 << i; double runtime {0.0}; for(unsigned j=0; jcheck([] (const std::string& m) { if(m != "tbb" && m != "tf" && m != "omp") { return "model name should be \"tbb\", \"omp\", or \"tf\""; } return ""; }); CLI11_PARSE(app, argc, argv); std::cout << "model=" << model << ' ' << "num_threads=" << num_threads << ' ' << "num_rounds=" << num_rounds << ' ' << std::endl; linear_chain(model, log_length, num_threads, num_rounds); return 0; }