1
1

Ensure that the localhost gets placed on the registry with the same name as found in the system_info structure. Otherwise, we wind up with confusion in the session directory names.

This commit was SVN r11139.
Этот коммит содержится в:
Ralph Castain 2006-08-09 15:26:37 +00:00
родитель 0f7ebe5f8b
Коммит ddd575d126

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

@ -17,11 +17,13 @@
*/ */
#include "orte_config.h" #include "orte_config.h"
#include "orte/orte_constants.h"
#include "orte/orte_types.h"
#include "opal/class/opal_list.h" #include "opal/class/opal_list.h"
#include "opal/util/output.h" #include "opal/util/output.h"
#include "orte/orte_constants.h"
#include "orte/orte_types.h" #include "orte/util/sys_info.h"
#include "orte/mca/ras/base/base.h" #include "orte/mca/ras/base/base.h"
#include "orte/mca/ras/base/ras_base_node.h" #include "orte/mca/ras/base/ras_base_node.h"
#include "orte/mca/rmgr/base/base.h" #include "orte/mca/rmgr/base/base.h"
@ -86,7 +88,10 @@ static int orte_ras_localhost_allocate(orte_jobid_t jobid)
if (NULL == node) { if (NULL == node) {
return ORTE_ERR_OUT_OF_RESOURCE; return ORTE_ERR_OUT_OF_RESOURCE;
} }
node->node_name = strdup("localhost"); /* use the same name we got in orte_system_info so we avoid confusion in
* the session directories
*/
node->node_name = strdup(orte_system_info.nodename);
node->node_arch = NULL; node->node_arch = NULL;
node->node_state = ORTE_NODE_STATE_UP; node->node_state = ORTE_NODE_STATE_UP;
/* JMS: this should not be hard-wired to 0, but there's no /* JMS: this should not be hard-wired to 0, but there's no