Merge pull request #3489 from kawashima-fj/pr/group-remote-peers-2nd
group: Fix `ompi_group_have_remote_peers` (2nd try)
Этот коммит содержится в:
Коммит
854fa5fc55
@ -563,10 +563,13 @@ bool ompi_group_have_remote_peers (ompi_group_t *group)
|
|||||||
#if OMPI_GROUP_SPARSE
|
#if OMPI_GROUP_SPARSE
|
||||||
proc = ompi_group_peer_lookup (group, i);
|
proc = ompi_group_peer_lookup (group, i);
|
||||||
#else
|
#else
|
||||||
if (ompi_proc_is_sentinel (group->grp_proc_pointers[i])) {
|
proc = ompi_group_get_proc_ptr_raw (group, i);
|
||||||
|
if (ompi_proc_is_sentinel (proc)) {
|
||||||
|
/* the proc must be stored in the group or cached in the proc
|
||||||
|
* hash table if the process resides in the local node
|
||||||
|
* (see ompi_proc_complete_init) */
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
proc = group->grp_proc_pointers[i];
|
|
||||||
#endif
|
#endif
|
||||||
if (!OPAL_PROC_ON_LOCAL_NODE(proc->super.proc_flags)) {
|
if (!OPAL_PROC_ON_LOCAL_NODE(proc->super.proc_flags)) {
|
||||||
return true;
|
return true;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user