Skip to content

Commit 1fb31d7

Browse files
author
Ralph Castain
committed
Make a partial repair of singleton comm_spawn - more to come
Signed-off-by: Ralph Castain <[email protected]>
1 parent 679927c commit 1fb31d7

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

orte/mca/ess/singleton/ess_singleton_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* All rights reserved.
1313
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
1414
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
15-
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved.
15+
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1616
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
1717
* reserved.
1818
* Copyright (c) 2016 Research Organization for Information Science
@@ -86,7 +86,7 @@ static int rte_init(void)
8686
char *error = NULL;
8787
uint64_t unique_key[2];
8888
char *string_key;
89-
char *ev1, *ev2;
89+
char *envar;
9090
opal_value_t *kv;
9191
char *val;
9292
int u32, *u32ptr;

orte/mca/odls/base/odls_base_default_fns.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Copyright (c) 2011-2015 Los Alamos National Security, LLC.
1515
* All rights reserved.
1616
* Copyright (c) 2011-2013 Cisco Systems, Inc. All rights reserved.
17-
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
17+
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1818
* Copyright (c) 2014 Research Organization for Information Science
1919
* and Technology (RIST). All rights reserved.
2020
* Copyright (c) 2017 Mellanox Technologies Ltd. All rights reserved.
@@ -167,7 +167,8 @@ int orte_odls_base_default_get_add_procs_data(opal_buffer_t *data,
167167
* copy of all active jobs so the grpcomm collectives can
168168
* properly work should a proc from one of the other jobs
169169
* interact with this one */
170-
if (orte_get_attribute(&jdata->attributes, ORTE_JOB_LAUNCHED_DAEMONS, NULL, OPAL_BOOL)) {
170+
if (orte_get_attribute(&jdata->attributes, ORTE_JOB_LAUNCHED_DAEMONS, NULL, OPAL_BOOL) ||
171+
ORTE_JOBID_INVALID != jdata->originator.jobid) {
171172
OBJ_CONSTRUCT(&jobdata, opal_buffer_t);
172173
numjobs = 0;
173174
for (i=0; i < orte_job_data->size; i++) {

orte/mca/plm/base/plm_base_launch_support.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2009 Institut National de Recherche en Informatique
1414
* et Automatique. All rights reserved.
1515
* Copyright (c) 2011-2012 Los Alamos National Security, LLC.
16-
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved.
16+
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1717
* Copyright (c) 2014-2015 Research Organization for Information Science
1818
* and Technology (RIST). All rights reserved.
1919
* Copyright (c) 2016 IBM Corporation. All rights reserved.
@@ -625,7 +625,7 @@ void orte_plm_base_post_launch(int fd, short args, void *cbdata)
625625
* it won't register and we need to send the response now.
626626
* Otherwise, it is an MPI job and we should wait for it
627627
* to register */
628-
if (!orte_get_attribute(&jdata->attributes, ORTE_JOB_NON_ORTE_JOB, NULL, OPAL_BOOL)) {
628+
if (orte_get_attribute(&jdata->attributes, ORTE_JOB_NON_ORTE_JOB, NULL, OPAL_BOOL)) {
629629
OPAL_OUTPUT_VERBOSE((5, orte_plm_base_framework.framework_output,
630630
"%s plm:base:launch job %s is not MPI",
631631
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),

orte/orted/orted_main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Copyright (c) 2009 Institut National de Recherche en Informatique
1616
* et Automatique. All rights reserved.
1717
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
18-
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved.
18+
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1919
* Copyright (c) 2015 Research Organization for Information Science
2020
* and Technology (RIST). All rights reserved.
2121
* $COPYRIGHT$
@@ -537,6 +537,7 @@ int orte_daemon(int argc, char *argv[])
537537
app->app = strdup("singleton");
538538
app->num_procs = 1;
539539
opal_pointer_array_add(jdata->apps, app);
540+
jdata->num_apps = 1;
540541

541542
/* setup a proc object for the singleton - since we
542543
* -must- be the HNP, and therefore we stored our
@@ -591,7 +592,7 @@ int orte_daemon(int argc, char *argv[])
591592
/* create a string that contains our uri + sysinfo + PMIx server URI envars */
592593
orte_util_convert_sysinfo_to_string(&sysinfo, orte_local_cpu_type, orte_local_cpu_model);
593594
asprintf(&tmp, "%s[%s]%s", orte_process_info.my_daemon_uri, sysinfo, nptr);
594-
free(sysinfo);
595+
free(sysinfo);
595596
free(nptr);
596597

597598
/* pass that info to the singleton */

0 commit comments

Comments
 (0)