common/ugni: fix bugs in r31557
This commit was SVN r31748. The following SVN revision numbers were found above: r31557 --> open-mpi/ompi@c4c9bc1573
Этот коммит содержится в:
родитель
2a57e71a47
Коммит
c15c3dee4c
@ -250,12 +250,12 @@ int ompi_common_ugni_init (void)
|
|||||||
ptr = &my_rank;
|
ptr = &my_rank;
|
||||||
OBJ_CONSTRUCT(&myvals, opal_list_t);
|
OBJ_CONSTRUCT(&myvals, opal_list_t);
|
||||||
rc = opal_dstore.fetch (opal_dstore_internal,
|
rc = opal_dstore.fetch (opal_dstore_internal,
|
||||||
ORTE_NAME_PRINT(&my_proc->proc_name),
|
(opal_identifier_t *)&my_proc->proc_name,
|
||||||
OMPI_DB_GLOBAL_RANK,
|
OMPI_DB_GLOBAL_RANK,
|
||||||
&myvals);
|
&myvals);
|
||||||
if (OPAL_SUCCESS == rc) {
|
if (OPAL_SUCCESS == rc) {
|
||||||
kv = (opal_value_t*)opal_list_get_first(&myvals):
|
kv = (opal_value_t*)opal_list_get_first(&myvals);
|
||||||
if (OPAL_SUCCESS != opal_value_unload(&kv, (void**)&ptr, OPAL_UINT32)) {
|
if (OPAL_SUCCESS != opal_value_unload(kv, (void**)&ptr, OPAL_UINT32)) {
|
||||||
my_rank = my_proc->proc_name.vpid;
|
my_rank = my_proc->proc_name.vpid;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user