Skip to content

Commit df1691a

Browse files
committed
singleton: better fix for quieting ofi common
about not knowing about local peers. Because with a singleton there aren't local peers so don't emit a message about locality to devices. Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent 9801584 commit df1691a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

opal/mca/common/ofi/common_ofi.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,14 @@ static uint32_t get_package_rank(opal_process_info_t *process_info)
553553
pname.jobid = OPAL_PROC_MY_NAME.jobid;
554554
pname.vpid = OPAL_VPID_WILDCARD;
555555

556+
/*
557+
* if we are a singleton just return myprocid.rank
558+
* because we by definition don't know about any local peers
559+
*/
560+
if (opal_process_info.is_singleton) {
561+
return (uint32_t) process_info->myprocid.rank;
562+
}
563+
556564
#if HAVE_DECL_PMIX_PACKAGE_RANK
557565
// Try to get the PACKAGE_RANK from PMIx
558566
OPAL_MODEX_RECV_VALUE_OPTIONAL(rc, PMIX_PACKAGE_RANK, &pname, &package_rank_ptr, PMIX_UINT16);

0 commit comments

Comments
 (0)