Skip to content

Commit d12e50b

Browse files
author
rhc54
authored
Merge pull request #1963 from rhc54/topic/pmixfix
Fix shared memory rendezvous
2 parents ddde154 + 08a0644 commit d12e50b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

orte/mca/ess/pmi/ess_pmi_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,12 @@ static int rte_init(void)
314314
}
315315
/* retrieve the local peers */
316316
OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_LOCAL_PEERS,
317-
&wildcard_rank, &val, OPAL_STRING);
317+
ORTE_PROC_MY_NAME, &val, OPAL_STRING);
318318
if (OPAL_SUCCESS == ret && NULL != val) {
319319
peers = opal_argv_split(val, ',');
320320
free(val);
321321
/* and their cpusets, if available */
322-
OPAL_MODEX_RECV_VALUE_OPTIONAL(ret, OPAL_PMIX_LOCAL_CPUSETS, &wildcard_rank, &val, OPAL_STRING);
322+
OPAL_MODEX_RECV_VALUE_OPTIONAL(ret, OPAL_PMIX_LOCAL_CPUSETS, ORTE_PROC_MY_NAME, &val, OPAL_STRING);
323323
if (OPAL_SUCCESS == ret && NULL != val) {
324324
cpusets = opal_argv_split(val, ':');
325325
free(val);

orte/orted/pmix/pmix_server_register_fns.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,14 @@ int orte_pmix_server_register_nspace(orte_job_t *jdata)
340340
kv = OBJ_NEW(opal_value_t);
341341
kv->key = strdup(OPAL_PMIX_LOCAL_PEERS);
342342
kv->type = OPAL_STRING;
343-
kv->data.string = peerlist;
343+
kv->data.string = strdup(peerlist);
344344
opal_list_append(pmap, &kv->super);
345345

346346
/* pass the list of cpusets */
347347
kv = OBJ_NEW(opal_value_t);
348348
kv->key = strdup(OPAL_PMIX_LOCAL_CPUSETS);
349349
kv->type = OPAL_STRING;
350-
kv->data.string = cpulist;
350+
kv->data.string = strdup(cpulist);
351351
opal_list_append(pmap, &kv->super);
352352

353353
/* appnum */

0 commit comments

Comments
 (0)