Skip to content
Snippets Groups Projects
Commit 384ba11f authored by Felix Weiglhofer's avatar Felix Weiglhofer
Browse files

algo::Options: Small changes.

parent 7edc4eb9
No related branches found
No related tags found
1 merge request!1187algo: Small changes
......@@ -38,9 +38,9 @@ Options::Options(int argc, char** argv)
po::options_description required("Required options");
// clang-format off
required.add_options()
("param-dir,p", po::value<std::string>(&fParamsDir)->value_name("<folder>")->required(),
("param-dir,p", po::value(&fParamsDir)->value_name("<folder>")->required(),
"read program options from this folder")
("input-locator,i", po::value<std::string>(&fInputLocator)->value_name("<locator>")->required(),
("input-locator,i", po::value(&fInputLocator)->value_name("<locator>")->required(),
"URI specifying input timeslice source")
;
// clang-format on
......@@ -48,18 +48,20 @@ Options::Options(int argc, char** argv)
po::options_description generic("Other options");
// clang-format off
generic.add_options()
("device,d", po::value<std::string>(&fDevice)->default_value("cpu")->value_name("<device>"),
("device,d", po::value(&fDevice)->default_value("cpu")->value_name("<device>"),
"select device (cpu, cuda0, cuda1, hip0, ...)")
("log-level,l", po::value(&fLogLevel)->default_value(info)->value_name("<level>"),
"set log level (debug, info, warning, error, fatal)")
("monitor,m", po::value(&fMonitorUri)->value_name("<uri>")->implicit_value("file:cout"),
"URI specifying monitor output (e.g. file:/tmp/monitor.txt, influx1:login:8086:cbmreco_status). Prints to cout when no argument is given. Monitor is disabled when flag is not set.")
("num-ts,n", po::value<int>(&fNumTimeslices)->default_value(-1)->value_name("<num>"),
("num-ts,n", po::value(&fNumTimeslices)->default_value(-1)->value_name("<num>"),
"Stop after <num> timeslices (-1 = all)")
("skip-ts,s", po::value<int>(&fSkipTimeslices)->default_value(0)->value_name("<num>"),
("skip-ts,s", po::value(&fSkipTimeslices)->default_value(0)->value_name("<num>"),
"Skip first <num> timeslices")
("times,t", po::bool_switch(&fCollectKernelTimes)->default_value(false),
"print kernel times")("help,h", "produce help message")
"print kernel times")
("help,h",
"produce help message")
;
// clang-format on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment