#include "async_task.hpp" #include void bench_async_task( const std::string& model, const unsigned num_threads, const unsigned num_rounds ) { std::cout << std::setw(12) << "size" << std::setw(12) << "runtime" << std::endl; for(int S=1; S<=2097152; S<<=1) { double runtime {0.0}; for(unsigned j=0; jcheck([] (const std::string& m) { if(m != "std" && m != "omp" && m != "tf") { return "model name should be \"std\", \"omp\", or \"tf\""; } return ""; }); CLI11_PARSE(app, argc, argv); std::cout << "model=" << model << ' ' << "num_threads=" << num_threads << ' ' << "num_rounds=" << num_rounds << ' ' << std::endl; bench_async_task(model, num_threads, num_rounds); return 0; }