Forgot that Terry wanted to control the vm launch with an mca param - set one up for that purpose
This commit was SVN r24525.
Этот коммит содержится в:
родитель
dc6f616599
Коммит
ebabe9c83a
@ -182,6 +182,9 @@ orte_default_comm_fn_t orte_comm;
|
|||||||
bool orte_report_child_jobs_separately;
|
bool orte_report_child_jobs_separately;
|
||||||
struct timeval orte_child_time_to_exit;
|
struct timeval orte_child_time_to_exit;
|
||||||
|
|
||||||
|
/* VM control */
|
||||||
|
bool orte_vm_launch = false;
|
||||||
|
|
||||||
#endif /* !ORTE_DISABLE_FULL_RTE */
|
#endif /* !ORTE_DISABLE_FULL_RTE */
|
||||||
|
|
||||||
int orte_debug_output = -1;
|
int orte_debug_output = -1;
|
||||||
|
@ -722,6 +722,10 @@ ORTE_DECLSPEC int orte_global_comm(orte_process_name_t *recipient,
|
|||||||
ORTE_DECLSPEC extern bool orte_report_child_jobs_separately;
|
ORTE_DECLSPEC extern bool orte_report_child_jobs_separately;
|
||||||
ORTE_DECLSPEC extern struct timeval orte_child_time_to_exit;
|
ORTE_DECLSPEC extern struct timeval orte_child_time_to_exit;
|
||||||
|
|
||||||
|
|
||||||
|
/* VM control */
|
||||||
|
ORTE_DECLSPEC extern bool orte_vm_launch;
|
||||||
|
|
||||||
#endif /* ORTE_DISABLE_FULL_SUPPORT */
|
#endif /* ORTE_DISABLE_FULL_SUPPORT */
|
||||||
|
|
||||||
END_C_DECLS
|
END_C_DECLS
|
||||||
|
@ -507,6 +507,11 @@ int orte_register_params(void)
|
|||||||
orte_child_time_to_exit.tv_sec = value;
|
orte_child_time_to_exit.tv_sec = value;
|
||||||
orte_child_time_to_exit.tv_usec = 0;
|
orte_child_time_to_exit.tv_usec = 0;
|
||||||
|
|
||||||
|
mca_base_param_reg_int_name("orte", "vm_launch",
|
||||||
|
"Launch daemons on all nodes at start to form a virtual machine for subsequent jobs",
|
||||||
|
false, false, (int)false, &value);
|
||||||
|
orte_vm_launch = OPAL_INT_TO_BOOL(value);
|
||||||
|
|
||||||
#endif /* ORTE_DISABLE_FULL_SUPPORT */
|
#endif /* ORTE_DISABLE_FULL_SUPPORT */
|
||||||
|
|
||||||
return ORTE_SUCCESS;
|
return ORTE_SUCCESS;
|
||||||
|
@ -431,7 +431,7 @@ static opal_cmd_line_init_t cmd_line_init[] = {
|
|||||||
"Max number of times to restart a failed process" },
|
"Max number of times to restart a failed process" },
|
||||||
|
|
||||||
{ "orte", "vm", "launch", '\0', "vm", "vm", 0,
|
{ "orte", "vm", "launch", '\0', "vm", "vm", 0,
|
||||||
&orterun_globals.launch_vm, OPAL_CMD_LINE_TYPE_BOOL,
|
NULL, OPAL_CMD_LINE_TYPE_BOOL,
|
||||||
"Launch daemons on all nodes at start to create a virtual machine [Default = false]" },
|
"Launch daemons on all nodes at start to create a virtual machine [Default = false]" },
|
||||||
|
|
||||||
#if OPAL_ENABLE_CRDEBUG == 1
|
#if OPAL_ENABLE_CRDEBUG == 1
|
||||||
@ -785,7 +785,7 @@ int orterun(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* if we are launching the vm, now is the time to do so */
|
/* if we are launching the vm, now is the time to do so */
|
||||||
if (orterun_globals.launch_vm) {
|
if (orte_vm_launch) {
|
||||||
int32_t ljob, i;
|
int32_t ljob, i;
|
||||||
orte_app_context_t *app;
|
orte_app_context_t *app;
|
||||||
|
|
||||||
@ -874,7 +874,6 @@ static int init_globals(void)
|
|||||||
orterun_globals.report_pid = NULL;
|
orterun_globals.report_pid = NULL;
|
||||||
orterun_globals.report_uri = NULL;
|
orterun_globals.report_uri = NULL;
|
||||||
orterun_globals.disable_recovery = false;
|
orterun_globals.disable_recovery = false;
|
||||||
orterun_globals.launch_vm = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reset the other fields every time */
|
/* Reset the other fields every time */
|
||||||
|
@ -67,7 +67,6 @@ struct orterun_globals_t {
|
|||||||
char *sstore_load;
|
char *sstore_load;
|
||||||
#endif
|
#endif
|
||||||
bool disable_recovery;
|
bool disable_recovery;
|
||||||
bool launch_vm;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user