1
1

Convert to use new param_reg interface.

Also check to see if infrastructre flag was previously set before assuming it
to be false. This was causing orterun to operate incorrectly in the presence
of a persistant daemon.

This commit was SVN r7039.
Этот коммит содержится в:
Josh Hursey 2005-08-25 19:13:22 +00:00
родитель 2bd821d8dc
Коммит 7bf744a624

Просмотреть файл

@ -53,9 +53,14 @@ orte_sds_singleton_set_name(void)
orte_process_info.num_procs = 1;
orte_process_info.vpid_start = vpid;
/* only set the singleton flag is we are NOT infrastructure */
id = mca_base_param_register_int("orte", "base", "infrastructure",
NULL, (int)false);
/* only set the singleton flag is we are NOT infrastructure,
and it has not been previously set. */
id = mca_base_param_find("orte_base", NULL, "infrastructure");
if (-1 == id) {
id = mca_base_param_reg_int_name("orte_base", "infrastructure",
"Whether we are ORTE infrastructure or an ORTE application",
false, false, (int)false, NULL);;
}
mca_base_param_lookup_int(id, &flag);
if (!flag) {
orte_process_info.singleton = true;