-
Notifications
You must be signed in to change notification settings - Fork 2
/
parse_flags.inc
45 lines (31 loc) · 1.54 KB
/
parse_flags.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef PARSE_FLAG
#error "Define PARSE_FLAG prior to including this file!"
#endif
// PARSE_FLAG(Type, Name, DefaultValue, Description)
// Supported types: bool, const char *, int, uptr.
// Default value must be a compile-time constant.
// Description must be a string literal.
PARSE_FLAG(bool, print_max_rss, false,
"Print memory usage information at the end of execution.")
PARSE_FLAG(bool, verbose, false, "Provide verbose output.")
PARSE_FLAG(bool, enabled, true,
"Inject OpenMP synchronization semantics to TSan.")
PARSE_FLAG(bool, report_data_leak, false, "Report tool internal data leaks.")
PARSE_FLAG(bool, stopped, false, "Delay start of measurement.")
PARSE_FLAG(bool, barrier, false,
"Synchronize start of measurement with an MPI_Barrier.")
PARSE_FLAG(bool, colorize, true, "Colorize output.")
PARSE_FLAG(bool, help, false, "Print the flag descriptions.")
#ifdef USE_ERRHANDLER
PARSE_FLAG(bool, stacktrace, false,
"Print stacktraces in case of an error. "
"Implies registering signal handlers and MPI error handlers.")
#endif
PARSE_FLAG(bool, abort_on_error, false, "Abort instead of exit on error.")
PARSE_FLAG(int, exitcode, 23, "Exit code for errors.")
PARSE_FLAG(const char *, log_path, "stdout",
"Write logs to \"log_path.pid\". The special values are \"stdout\" "
"and \"stderr\".")
PARSE_FLAG(const char *, data_path, "stdout",
"Write metric data to \"<data_path>-<#procs>x<#threads>.txt\". "
"The special values are \"stdout\" and \"stderr\".")