Skip to content

Commit 926fdfb

Browse files
committed
opal/ofi: reduce logging verbosity
Make error log less verbose Signed-off-by: Wenduo Wang <wenduwan@amazon.com>
1 parent 8eaa49a commit 926fdfb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

opal/mca/common/ofi/common_ofi.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ static int count_providers(struct fi_info *provider_list)
713713
*/
714714
static uint32_t get_package_rank(opal_process_info_t *process_info)
715715
{
716-
int i;
716+
int i, level = 10;
717717
uint16_t relative_locality, *package_rank_ptr;
718718
uint32_t ranks_on_package = 0;
719719
opal_process_name_t pname;
@@ -774,7 +774,13 @@ static uint32_t get_package_rank(opal_process_info_t *process_info)
774774
}
775775
}
776776
err:
777-
opal_show_help("help-common-ofi.txt", "package_rank failed", true);
777+
if (opal_output_get_verbosity(opal_common_ofi.output) >= level) {
778+
opal_show_help("help-common-ofi.txt", "package_rank failed", true, level);
779+
}
780+
781+
if (locality_string)
782+
free(locality_string);
783+
778784
return (uint32_t) process_info->myprocid.rank;
779785
}
780786

0 commit comments

Comments
 (0)