From 6cf3925b093ca784ea8716e268a65c8daa141984 Mon Sep 17 00:00:00 2001 From: Elena Date: Mon, 8 Dec 2014 13:13:35 +0200 Subject: [PATCH] restored _process_name_print_for_opal function in orte_init: it's required for opal output from daemons which never called ompi_init so didn't set opal_process_name_print pointer --- orte/runtime/orte_init.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/orte/runtime/orte_init.c b/orte/runtime/orte_init.c index a2bc9f2630..cc47927ec3 100644 --- a/orte/runtime/orte_init.c +++ b/orte/runtime/orte_init.c @@ -60,6 +60,13 @@ * the runtime. */ +static char* +_process_name_print_for_opal(const opal_process_name_t procname) +{ + orte_process_name_t* rte_name = (orte_process_name_t*)&procname; + return ORTE_NAME_PRINT(rte_name); +} + static char* _jobid_print_for_opal(const opal_jobid_t jobid) { @@ -132,7 +139,7 @@ int orte_init(int* pargc, char*** pargv, orte_proc_type_t flags) } /* Convince OPAL to use our naming scheme */ - // opal_process_name_print = _process_name_print_for_opal; + opal_process_name_print = _process_name_print_for_opal; opal_vpid_print = _vpid_print_for_opal; opal_jobid_print = _jobid_print_for_opal; opal_compare_proc = _process_name_compare;