1
1

Merge pull request #3282 from rhc54/topic/direct

Set the PARENT vpid for direct routed module
Этот коммит содержится в:
Ralph Castain 2017-04-04 20:55:12 -07:00 коммит произвёл GitHub
родитель 9132bb26fe 40ca43e157
Коммит 9a69b20d09

Просмотреть файл

@ -4,7 +4,7 @@
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -76,14 +76,16 @@ static int init(void)
lifeline = NULL;
if (ORTE_PROC_IS_DAEMON) {
ORTE_PROC_MY_PARENT->jobid = ORTE_PROC_MY_NAME->jobid;
/* if we are using static ports, set my lifeline to point at my parent */
if (orte_static_ports) {
/* we will have been given our parent's vpid by MCA param */
lifeline = ORTE_PROC_MY_PARENT;
} else {
/* set our lifeline to the HNP - we will abort if that connection is lost */
lifeline = ORTE_PROC_MY_HNP;
ORTE_PROC_MY_PARENT->vpid = 0;
}
ORTE_PROC_MY_PARENT->jobid = ORTE_PROC_MY_NAME->jobid;
} else if (ORTE_PROC_IS_APP) {
/* if we don't have a designated daemon, just
* disqualify ourselves */
@ -359,4 +361,3 @@ static int direct_ft_event(int state)
return exit_status;
}
#endif