1
1
This commit was SVN r14473.
Этот коммит содержится в:
Ralph Castain 2007-04-23 18:26:33 +00:00
родитель 7a57b694bb
Коммит b260f8ee36
2 изменённых файлов: 31 добавлений и 0 удалений

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

@ -55,6 +55,7 @@ extern "C" {
#define ORTE_NS_USE_NODE "orte-ns-use-node" #define ORTE_NS_USE_NODE "orte-ns-use-node"
#define ORTE_NS_INCLUDE_DESCENDANTS "orte-ns-include-desc" #define ORTE_NS_INCLUDE_DESCENDANTS "orte-ns-include-desc"
#define ORTE_NS_INCLUDE_CHILDREN "orte-ns-include-child" #define ORTE_NS_INCLUDE_CHILDREN "orte-ns-include-child"
#define ORTE_NS_USE_JOB_FAMILY "orte-ns-use-job-family"
#define ORTE_NAME_ARGS(n) \ #define ORTE_NAME_ARGS(n) \

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

@ -277,6 +277,36 @@ void orte_ns_replica_recv(int status, orte_process_name_t* sender,
} }
break; break;
case ORTE_NS_GET_JOB_FAMILY_CMD:
count = 1;
if (ORTE_SUCCESS != (rc = orte_dss.unpack(buffer, (void*)&job, &count, ORTE_JOBID))) {
ORTE_ERROR_LOG(rc);
goto RETURN_ERROR;
}
if (ORTE_SUCCESS != (rc = orte_ns_replica_get_job_family(&descendants, &nret, job))) {
ORTE_ERROR_LOG(rc);
goto RETURN_ERROR;
}
if (ORTE_SUCCESS != (rc = orte_dss.pack(&answer, (void*)&nret, 1, ORTE_STD_CNTR))) {
ORTE_ERROR_LOG(rc);
goto RETURN_ERROR;
}
if (0 < nret) {
if (ORTE_SUCCESS != (rc = orte_dss.pack(&answer, (void*)descendants, nret, ORTE_JOBID))) {
ORTE_ERROR_LOG(rc);
goto RETURN_ERROR;
}
}
if (0 > (rc = orte_rml.send_buffer(sender, &answer, tag, 0))) {
ORTE_ERROR_LOG(ORTE_ERR_COMM_FAILURE);
goto RETURN_ERROR;
}
break;
case ORTE_NS_RESERVE_RANGE_CMD: case ORTE_NS_RESERVE_RANGE_CMD:
count = 1; count = 1;
if (ORTE_SUCCESS != (rc = orte_dss.unpack(buffer, (void*)&job, &count, ORTE_JOBID))) { if (ORTE_SUCCESS != (rc = orte_dss.unpack(buffer, (void*)&job, &count, ORTE_JOBID))) {