Skip to content

Commit 9a69b20

Browse files
author
Ralph Castain
authored
Merge pull request #3282 from rhc54/topic/direct
Set the PARENT vpid for direct routed module
2 parents 9132bb2 + 40ca43e commit 9a69b20

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

orte/mca/routed/direct/routed_direct.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright (c) 2004-2011 The University of Tennessee and The University
55
* of Tennessee Research Foundation. All rights
66
* reserved.
7-
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
7+
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
88
* $COPYRIGHT$
99
*
1010
* Additional copyrights may follow
@@ -76,14 +76,16 @@ static int init(void)
7676
lifeline = NULL;
7777

7878
if (ORTE_PROC_IS_DAEMON) {
79+
ORTE_PROC_MY_PARENT->jobid = ORTE_PROC_MY_NAME->jobid;
7980
/* if we are using static ports, set my lifeline to point at my parent */
8081
if (orte_static_ports) {
82+
/* we will have been given our parent's vpid by MCA param */
8183
lifeline = ORTE_PROC_MY_PARENT;
8284
} else {
8385
/* set our lifeline to the HNP - we will abort if that connection is lost */
8486
lifeline = ORTE_PROC_MY_HNP;
87+
ORTE_PROC_MY_PARENT->vpid = 0;
8588
}
86-
ORTE_PROC_MY_PARENT->jobid = ORTE_PROC_MY_NAME->jobid;
8789
} else if (ORTE_PROC_IS_APP) {
8890
/* if we don't have a designated daemon, just
8991
* disqualify ourselves */
@@ -359,4 +361,3 @@ static int direct_ft_event(int state)
359361
return exit_status;
360362
}
361363
#endif
362-

0 commit comments

Comments
 (0)