2015-12-17 02:30:40 +03:00
|
|
|
/*
|
2017-01-17 06:32:01 +03:00
|
|
|
* Copyright (c) 2015-2017 Intel, Inc. All rights reserved.
|
2017-01-18 04:02:55 +03:00
|
|
|
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
|
|
|
|
* Copyright (c) 2017 Research Organization for Information Science
|
|
|
|
* and Technology (RIST). All rights reserved.
|
2015-12-17 02:30:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ORTED_SUBMIT_H
|
|
|
|
#define ORTED_SUBMIT_H
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
|
|
|
|
2016-05-06 20:55:21 +03:00
|
|
|
#include "opal/util/cmd_line.h"
|
|
|
|
|
2015-12-17 02:30:40 +03:00
|
|
|
#include "orte/mca/plm/plm.h"
|
|
|
|
#include "orte/runtime/orte_globals.h"
|
|
|
|
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
typedef void (*orte_submit_cbfunc_t)(int index, orte_job_t *jdata, int ret, void *cbdata);
|
|
|
|
|
|
|
|
ORTE_DECLSPEC int orte_submit_init(int argc, char *argv[],
|
2016-05-24 07:09:44 +03:00
|
|
|
opal_cmd_line_init_t *opts);
|
2015-12-17 02:30:40 +03:00
|
|
|
ORTE_DECLSPEC int orte_submit_cancel(int index);
|
|
|
|
ORTE_DECLSPEC void orte_submit_finalize(void);
|
|
|
|
ORTE_DECLSPEC int orte_submit_job(char *cmd[], int *index,
|
|
|
|
orte_submit_cbfunc_t launch_cb, void *launch_cbdata,
|
|
|
|
orte_submit_cbfunc_t complete_cb, void *complete_cbdata);
|
|
|
|
ORTE_DECLSPEC int orte_submit_halt(void);
|
2016-04-02 18:50:05 +03:00
|
|
|
ORTE_DECLSPEC void orte_debugger_init_after_spawn(int fd, short event, void *arg);
|
|
|
|
ORTE_DECLSPEC void orte_debugger_detached(int fd, short event, void *arg);
|
|
|
|
|
|
|
|
extern int orte_debugger_attach_fd;
|
|
|
|
extern bool orte_debugger_fifo_active;
|
|
|
|
extern opal_event_t *orte_debugger_attach;
|
|
|
|
extern char MPIR_attach_fifo[];
|
2015-12-17 02:30:40 +03:00
|
|
|
|
2016-02-16 07:00:57 +03:00
|
|
|
/**
|
2016-05-06 20:55:21 +03:00
|
|
|
* Global struct for caching orte command line options.
|
2016-02-16 07:00:57 +03:00
|
|
|
*/
|
2016-05-06 20:55:21 +03:00
|
|
|
struct orte_cmd_options_t {
|
2016-02-16 07:00:57 +03:00
|
|
|
bool help;
|
|
|
|
bool version;
|
|
|
|
bool verbose;
|
|
|
|
char *report_pid;
|
|
|
|
char *report_uri;
|
|
|
|
bool terminate;
|
|
|
|
bool debugger;
|
|
|
|
int num_procs;
|
|
|
|
char *appfile;
|
|
|
|
char *wdir;
|
|
|
|
bool set_cwd_to_session_dir;
|
|
|
|
char *path;
|
|
|
|
char *preload_files;
|
|
|
|
bool sleep;
|
|
|
|
char *stdin_target;
|
|
|
|
char *prefix;
|
|
|
|
char *path_to_mpirun;
|
|
|
|
#if OPAL_ENABLE_FT_CR == 1
|
|
|
|
char *sstore_load;
|
|
|
|
#endif
|
|
|
|
bool disable_recovery;
|
|
|
|
bool preload_binaries;
|
|
|
|
bool index_argv;
|
|
|
|
bool run_as_root;
|
|
|
|
char *personality;
|
|
|
|
bool create_dvm;
|
|
|
|
bool terminate_dvm;
|
|
|
|
bool nolocal;
|
|
|
|
bool no_oversubscribe;
|
|
|
|
bool oversubscribe;
|
|
|
|
int cpus_per_proc;
|
|
|
|
bool pernode;
|
|
|
|
int npernode;
|
|
|
|
bool use_hwthreads_as_cpus;
|
|
|
|
int npersocket;
|
|
|
|
char *mapping_policy;
|
|
|
|
char *ranking_policy;
|
|
|
|
char *binding_policy;
|
|
|
|
bool report_bindings;
|
|
|
|
char *slot_list;
|
|
|
|
bool debug;
|
|
|
|
bool tag_output;
|
|
|
|
bool timestamp_output;
|
|
|
|
char *output_filename;
|
|
|
|
bool merge;
|
2016-07-13 23:28:56 +03:00
|
|
|
bool continuous;
|
2016-02-16 07:00:57 +03:00
|
|
|
char *hnp;
|
2016-04-02 18:50:05 +03:00
|
|
|
bool staged_exec;
|
2016-05-27 19:45:34 +03:00
|
|
|
int timeout;
|
|
|
|
bool report_state_on_timeout;
|
|
|
|
bool get_stack_traces;
|
2016-02-16 07:00:57 +03:00
|
|
|
};
|
2016-05-06 20:55:21 +03:00
|
|
|
typedef struct orte_cmd_options_t orte_cmd_options_t;
|
|
|
|
ORTE_DECLSPEC extern orte_cmd_options_t orte_cmd_options;
|
|
|
|
ORTE_DECLSPEC extern opal_cmd_line_t *orte_cmd_line;
|
2016-02-16 07:00:57 +03:00
|
|
|
|
2015-12-17 02:30:40 +03:00
|
|
|
|
|
|
|
END_C_DECLS
|
|
|
|
|
|
|
|
#endif /* ORTED_SUBMIT_H */
|