1
1

Enable the new attributes for remote operations such as comm_spawn

This commit was SVN r12382.
Этот коммит содержится в:
Ralph Castain 2006-10-31 23:52:25 +00:00
родитель 9204747930
Коммит 233dac8bba

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

@ -360,6 +360,7 @@ static int orte_rmgr_proxy_spawn_job(
{ {
int rc; int rc;
orte_process_name_t name = {0, ORTE_JOBID_INVALID, 0}; orte_process_name_t name = {0, ORTE_JOBID_INVALID, 0};
orte_job_map_t *map;
OPAL_TRACE(1); OPAL_TRACE(1);
@ -379,15 +380,34 @@ static int orte_rmgr_proxy_spawn_job(
ORTE_ERROR_LOG(rc); ORTE_ERROR_LOG(rc);
return rc; return rc;
} }
if (NULL != orte_rmgr.find_attribute(attributes, ORTE_RMGR_STOP_AFTER_SETUP)) {
return ORTE_SUCCESS;
}
if (ORTE_SUCCESS != (rc = orte_ras.allocate_job(*jobid, attributes))) { if (ORTE_SUCCESS != (rc = orte_ras.allocate_job(*jobid, attributes))) {
ORTE_ERROR_LOG(rc); ORTE_ERROR_LOG(rc);
return rc; return rc;
} }
if (NULL != orte_rmgr.find_attribute(attributes, ORTE_RMGR_STOP_AFTER_ALLOC)) {
return ORTE_SUCCESS;
}
if (ORTE_SUCCESS != (rc = orte_rmaps.map_job(*jobid, attributes))) { if (ORTE_SUCCESS != (rc = orte_rmaps.map_job(*jobid, attributes))) {
ORTE_ERROR_LOG(rc); ORTE_ERROR_LOG(rc);
return rc; return rc;
} }
if (NULL != orte_rmgr.find_attribute(attributes, ORTE_RMAPS_DISPLAY_AFTER_MAP)) {
orte_rmaps.get_job_map(&map, *jobid);
orte_dss.dump(0, map, ORTE_JOB_MAP);
}
if (NULL != orte_rmgr.find_attribute(attributes, ORTE_RMGR_STOP_AFTER_MAP)) {
return ORTE_SUCCESS;
}
/* /*
* setup I/O forwarding * setup I/O forwarding
*/ */