Skip to content

Commit 7a18858

Browse files
authored
Merge pull request #3532 from kawashima-fj/pr/v2.0.x/group-remote-peers
v2.0.x: group: Fix `ompi_group_have_remote_peers`
2 parents c5fbc50 + 6f17976 commit 7a18858

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ompi/group/group.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,13 @@ bool ompi_group_have_remote_peers (ompi_group_t *group)
563563
#if OMPI_GROUP_SPARSE
564564
proc = ompi_group_peer_lookup (group, i);
565565
#else
566-
if (ompi_proc_is_sentinel (group->grp_proc_pointers[i])) {
566+
proc = ompi_group_get_proc_ptr_raw (group, i);
567+
if (ompi_proc_is_sentinel (proc)) {
568+
/* the proc must be stored in the group or cached in the proc
569+
* hash table if the process resides in the local node
570+
* (see ompi_proc_complete_init) */
567571
return true;
568572
}
569-
proc = group->grp_proc_pointers[i];
570573
#endif
571574
if (!OPAL_PROC_ON_LOCAL_NODE(proc->super.proc_flags)) {
572575
return true;

0 commit comments

Comments
 (0)