Skip to content

Commit 292563f

Browse files
author
rhc54
authored
Merge pull request #1899 from rhc54/topic/nodeid
Pass the nodeid for each proc in the job. Fix a mistaken error output message
2 parents 9807a6d + 9ab20ca commit 292563f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ int mca_topo_treematch_dist_graph_create(mca_topo_base_module_t* topo_module,
198198
OPAL_MODEX_RECV_VALUE(err, OPAL_PMIX_NODEID, &(proc->super.proc_name), &pval, OPAL_UINT32);
199199
if( OPAL_SUCCESS != err ) {
200200
opal_output(0, "Unable to extract peer %s nodeid from the modex.\n",
201-
OMPI_NAME_PRINT(&(proc->super)));
201+
OMPI_NAME_PRINT(&(proc->super.proc_name)));
202202
vpids[i] = colors[i] = -1;
203203
continue;
204204
}

orte/orted/pmix/pmix_server_register_fns.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,12 +374,19 @@ int orte_pmix_server_register_nspace(orte_job_t *jdata)
374374
kv->data.uint32 = pptr->node_rank;
375375
opal_list_append(pmap, &kv->super);
376376

377-
/* node id */
377+
/* hostname */
378378
kv = OBJ_NEW(opal_value_t);
379379
kv->key = strdup(OPAL_PMIX_HOSTNAME);
380380
kv->type = OPAL_STRING;
381381
kv->data.string = strdup(pptr->node->name);
382382
opal_list_append(pmap, &kv->super);
383+
384+
/* node ID */
385+
kv = OBJ_NEW(opal_value_t);
386+
kv->key = strdup(OPAL_PMIX_NODEID);
387+
kv->type = OPAL_UINT32;
388+
kv->data.uint32 = node->index;
389+
opal_list_append(pmap, &kv->super);
383390
}
384391

385392
/* mark the job as registered */

0 commit comments

Comments
 (0)