1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #ifndef ORTED_SUBMIT_H
16 #define ORTED_SUBMIT_H
17
18 #include "orte_config.h"
19
20 #include "opal/util/cmd_line.h"
21
22 #include "orte/mca/plm/plm.h"
23 #include "orte/runtime/orte_globals.h"
24
25 BEGIN_C_DECLS
26
27
28 typedef void (*orte_submit_cbfunc_t)(int index, orte_job_t *jdata, int ret, void *cbdata);
29
30 ORTE_DECLSPEC int orte_submit_init(int argc, char *argv[],
31 opal_cmd_line_init_t *opts);
32 ORTE_DECLSPEC int orte_submit_cancel(int index);
33 ORTE_DECLSPEC void orte_submit_finalize(void);
34 ORTE_DECLSPEC int orte_submit_job(char *cmd[], int *index,
35 orte_submit_cbfunc_t launch_cb, void *launch_cbdata,
36 orte_submit_cbfunc_t complete_cb, void *complete_cbdata);
37 ORTE_DECLSPEC int orte_submit_halt(void);
38 ORTE_DECLSPEC void orte_debugger_init_after_spawn(int fd, short event, void *arg);
39 ORTE_DECLSPEC void orte_debugger_detached(int fd, short event, void *arg);
40
41 extern int orte_debugger_attach_fd;
42 extern bool orte_debugger_fifo_active;
43 extern opal_event_t *orte_debugger_attach;
44 extern char MPIR_attach_fifo[];
45
46
47
48
49 struct orte_cmd_options_t {
50 char *help;
51 bool version;
52 bool verbose;
53 char *report_pid;
54 char *report_uri;
55 bool terminate;
56 bool debugger;
57 int num_procs;
58 char *appfile;
59 char *wdir;
60 bool set_cwd_to_session_dir;
61 char *path;
62 char *preload_files;
63 bool sleep;
64 char *stdin_target;
65 char *prefix;
66 char *path_to_mpirun;
67 #if OPAL_ENABLE_FT_CR == 1
68 char *sstore_load;
69 #endif
70 bool disable_recovery;
71 bool preload_binaries;
72 bool index_argv;
73 bool run_as_root;
74 char *personality;
75 bool create_dvm;
76 bool terminate_dvm;
77 bool nolocal;
78 bool no_oversubscribe;
79 bool oversubscribe;
80 int cpus_per_proc;
81 bool pernode;
82 int npernode;
83 bool use_hwthreads_as_cpus;
84 int npersocket;
85 char *mapping_policy;
86 char *ranking_policy;
87 char *binding_policy;
88 bool report_bindings;
89 char *cpu_list;
90 bool debug;
91 bool tag_output;
92 bool timestamp_output;
93 char *output_filename;
94 bool merge;
95 bool continuous;
96 char *hnp;
97 bool staged_exec;
98 int timeout;
99 bool report_state_on_timeout;
100 bool get_stack_traces;
101 char *pset;
102 };
103 typedef struct orte_cmd_options_t orte_cmd_options_t;
104 ORTE_DECLSPEC extern orte_cmd_options_t orte_cmd_options;
105 ORTE_DECLSPEC extern opal_cmd_line_t *orte_cmd_line;
106
107
108 END_C_DECLS
109
110 #endif