From 3516348aadc0abbdb8acbb00bd70bff7c737bb96 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Thu, 29 Aug 2013 16:35:20 +0000 Subject: [PATCH] We don't need to report errors in pmi_setup as it is possible that PMI is available, but that we weren't launched under it (e.g., we launched via mpirun). cmr:v1.7.3:reviewer=hjelmn:subject="Silence unnecessary PMI error msgs" This commit was SVN r29086. --- opal/mca/db/pmi/db_pmi.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/opal/mca/db/pmi/db_pmi.c b/opal/mca/db/pmi/db_pmi.c index 54cf7e460c..0a64348f33 100644 --- a/opal/mca/db/pmi/db_pmi.c +++ b/opal/mca/db/pmi/db_pmi.c @@ -580,13 +580,19 @@ static int setup_pmi(void) #else rc = PMI_KVS_Get_value_length_max(&pmi_vallen_max); if (PMI_SUCCESS != rc) { - OPAL_PMI_ERROR(rc, "PMI_Get_value_length_max"); + OPAL_OUTPUT_VERBOSE((1, opal_db_base_framework.framework_output, + "db:pmi:pmi_setup failed %s with error %s", + "PMI_Get_value_length_max", + opal_errmgr_base_pmi_error(rc))); return OPAL_ERROR; } #endif if (PMI_SUCCESS != (rc = PMI_KVS_Get_name_length_max(&max_length))) { - OPAL_PMI_ERROR(rc, "PMI_KVS_Get_name_length_max"); + OPAL_OUTPUT_VERBOSE((1, opal_db_base_framework.framework_output, + "db:pmi:pmi_setup failed %s with error %s", + "PMI_KVS_Get_name_length_max", + opal_errmgr_base_pmi_error(rc))); return OPAL_ERROR; } pmi_kvs_name = (char*)malloc(max_length); @@ -600,7 +606,10 @@ static int setup_pmi(void) rc = PMI_KVS_Get_my_name(pmi_kvs_name,max_length); #endif if (PMI_SUCCESS != rc) { - OPAL_PMI_ERROR(rc, "PMI_KVS_Get_my_name"); + OPAL_OUTPUT_VERBOSE((1, opal_db_base_framework.framework_output, + "db:pmi:pmi_setup failed %s with error %s", + "PMI_KVS_Get_my_name", + opal_errmgr_base_pmi_error(rc))); return OPAL_ERROR; } @@ -608,7 +617,10 @@ static int setup_pmi(void) pmi_keylen_max = PMI2_MAX_KEYLEN; #else if (PMI_SUCCESS != (rc = PMI_KVS_Get_key_length_max(&pmi_keylen_max))) { - OPAL_PMI_ERROR(rc, "PMI_KVS_Get_key_length_max"); + OPAL_OUTPUT_VERBOSE((1, opal_db_base_framework.framework_output, + "db:pmi:pmi_setup failed %s with error %s", + "PMI_KVS_Get_key_length_max", + opal_errmgr_base_pmi_error(rc))); return OPAL_ERROR; } #endif