Correct a bug in the assignment of node index value. Ensure we set the app number so that MPI attributes get set correctly.
This commit was SVN r21927.
Этот коммит содержится в:
родитель
50ca27c1c8
Коммит
d3d34f8f15
@ -173,6 +173,9 @@ static int rte_init(void)
|
||||
}
|
||||
orte_process_info.num_procs = strtol(envar, NULL, 10);
|
||||
|
||||
/* set the app_num so that MPI attributes get set correctly */
|
||||
orte_process_info.app_num = 1;
|
||||
|
||||
/* if this is SLURM 2.0 or above, get our port
|
||||
* assignments for use in the OOB
|
||||
*/
|
||||
@ -273,7 +276,8 @@ static int rte_init(void)
|
||||
node = OBJ_NEW(orte_nid_t);
|
||||
node->name = strdup(nodes[i]);
|
||||
node->daemon = i;
|
||||
node->index = opal_pointer_array_set_item(&orte_nidmap, i, node);
|
||||
node->index = i;
|
||||
opal_pointer_array_set_item(&orte_nidmap, i, node);
|
||||
}
|
||||
opal_argv_free(nodes);
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user