You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/driver.cpp
+26-24Lines changed: 26 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
+
// #include "chimbuko/AD.hpp"
1
2
#include"chimbuko/chimbuko.hpp"
2
3
#include"chimbuko/verbose.hpp"
3
4
#include"chimbuko/util/string.hpp"
4
5
#include"chimbuko/util/commandLineParser.hpp"
5
-
#include"chimbuko/util/error.hpp"
6
6
#include<chrono>
7
7
#include<cstdlib>
8
8
@@ -60,12 +60,15 @@ struct setLoggingHeadRankArg: public optionalCommandLineArgBase<ChimbukoParams>{
60
60
}
61
61
};
62
62
63
-
63
+
64
64
65
65
optionalArgsParser & getOptionalArgsParser(){
66
66
staticbool initialized = false;
67
67
static optionalArgsParser p;
68
68
if(!initialized){
69
+
addOptionalCommandLineArg(p, ad_algorithm, "Set an AD algorithm to use: hbos or sstd.");
70
+
addOptionalCommandLineArg(p, hbos_threshold, "Set Threshold for HBOS anomaly detection filter.");
71
+
addOptionalCommandLineArg(p, hbos_use_global_threshold, "Set true to use a global threshold in HBOS algorithm. Dafault is true.");
69
72
addOptionalCommandLineArg(p, program_idx, "Set the index associated with the instrumented program. Use to label components of a workflow. (default 0)");
70
73
addOptionalCommandLineArg(p, outlier_sigma, "Set the number of standard deviations that defines an anomalous event (default 6)");
71
74
addOptionalCommandLineArg(p, pserver_addr, "Set the address of the parameter server. If empty (default) the pserver will not be used.");
addOptionalCommandLineArg(p, anom_win_size, "When anomaly data are recorded a window of this size (in units of function execution events) around the anomalous event are also recorded (default 10)");
75
78
addOptionalCommandLineArg(p, prov_outputpath, "Output provenance data to this directory. Can be used in place of or in conjunction with the provenance database. An empty string \"\" (default) disables this output");
76
79
#ifdef ENABLE_PROVDB
77
-
addOptionalCommandLineArg(p, provdb_addr, "Address of the provenance database. If empty (default) the provenance DB will not be used.\nHas format \"ofi+tcp;ofi_rxm://${IP_ADDR}:${PORT}\". Should also accept \"tcp://${IP_ADDR}:${PORT}\"");
78
-
addOptionalCommandLineArg(p, nprovdb_shards, "Number of provenance database shards. Clients connect to shards round-robin by rank (default 1)");
79
-
#endif
80
+
addOptionalCommandLineArg(p, provdb_addr, "Address of the provenance database. If empty (default) the provenance DB will not be used.\nHas format \"ofi+tcp;ofi_rxm://${IP_ADDR}:${PORT}\". Should also accept \"tcp://${IP_ADDR}:${PORT}\"");
81
+
addOptionalCommandLineArg(p, nprovdb_shards, "Number of provenance database shards. Clients connect to shards round-robin by rank (default 1)");
82
+
#endif
80
83
#ifdef _PERF_METRIC
81
84
addOptionalCommandLineArg(p, perf_outputpath, "Output path for AD performance monitoring data. If an empty string (default) no output is written.");
82
85
addOptionalCommandLineArg(p, perf_step, "How frequently (in IO steps) the performance data is dumped (default 10)");
<< " <Trace directory> : The directory in which the BPFile or SST file is located\n"
104
107
<< " <Trace file prefix> : The prefix of the file (the trace file name without extension e.g. \"tau-metrics-mybinary\" for \"tau-metrics-mybinary.bp\")\n"
addOptionalCommandLineArg(p, ad, "Set AD algorithm to use.");
67
71
addOptionalCommandLineArg(p, nt, "Set the number of RPC handler threads (max-2 by default)");
68
72
addOptionalCommandLineArg(p, logdir, "Set the output log directory (default: job directory)");
69
73
addOptionalCommandLineArg(p, port, "Set the pserver port (default: 5559)");
@@ -79,7 +83,7 @@ struct pserverArgs{
79
83
addOptionalCommandLineArg(p, autoshutdown, "If enabled the pserver will automatically shutdown when all clients have disconnected (default: true)");
80
84
#endif
81
85
#ifdef ENABLE_PROVDB
82
-
addOptionalCommandLineArg(p, provdb_addr, "Address of the provenance database. If empty (default) the global function and counter statistics will not be send to the provenance DB.\nHas format \"ofi+tcp;ofi_rxm://${IP_ADDR}:${PORT}\". Should also accept \"tcp://${IP_ADDR}:${PORT}\"");
86
+
addOptionalCommandLineArg(p, provdb_addr, "Address of the provenance database. If empty (default) the global function and counter statistics will not be send to the provenance DB.\nHas format \"ofi+tcp;ofi_rxm://${IP_ADDR}:${PORT}\". Should also accept \"tcp://${IP_ADDR}:${PORT}\"");
83
87
#endif
84
88
85
89
init = true;
@@ -107,13 +111,18 @@ int main (int argc, char ** argv){
0 commit comments