Skip to content

Commit 3308da7

Browse files
authored
Merge pull request #11035 from hppritcha/ofi_common_make_less_noisy
ofi/common: use verbosity level to control
2 parents 404b9cd + d642af1 commit 3308da7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

opal/mca/common/ofi/common_ofi.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,11 +554,13 @@ static uint32_t get_package_rank(opal_process_info_t *process_info)
554554
}
555555
#endif
556556

557-
// Get the local peers
557+
// Get the local peers - note there may not always be local peers,e.g. .singleton launch case
558558
OPAL_MODEX_RECV_VALUE(rc, PMIX_LOCAL_PEERS, &pname, &local_peers, PMIX_STRING);
559559
if (PMIX_SUCCESS != rc || NULL == local_peers) {
560560
// We can't find package_rank, fall back to procid
561-
opal_show_help("help-common-ofi.txt", "package_rank failed", true);
561+
if (10 <= opal_common_ofi_verbose_level) {
562+
opal_show_help("help-common-ofi.txt", "package_rank failed", true, 10);
563+
}
562564
return (uint32_t) process_info->myprocid.rank;
563565
}
564566
peers = opal_argv_split(local_peers, ',');

0 commit comments

Comments
 (0)