Ensure that the bookmark of the parent job is applied to the child in a comm_spawn so we start mapping from the right place
This commit was SVN r17982.
Этот коммит содержится в:
родитель
a2795fe43d
Коммит
abfb3577c1
@ -104,7 +104,7 @@ void orte_plm_base_receive_process_msg(int fd, short event, void *data)
|
||||
orte_plm_cmd_flag_t command;
|
||||
orte_std_cntr_t count;
|
||||
orte_jobid_t job;
|
||||
orte_job_t *jdata;
|
||||
orte_job_t *jdata, *parent;
|
||||
opal_buffer_t answer;
|
||||
orte_vpid_t vpid;
|
||||
orte_proc_t **procs;
|
||||
@ -134,6 +134,14 @@ void orte_plm_base_receive_process_msg(int fd, short event, void *data)
|
||||
goto ANSWER_LAUNCH;
|
||||
}
|
||||
|
||||
/* get the parent's job object */
|
||||
if (NULL == (parent = orte_get_job_data_object(mev->sender.jobid))) {
|
||||
ORTE_ERROR_LOG(ORTE_ERR_NOT_FOUND);
|
||||
goto ANSWER_LAUNCH;
|
||||
}
|
||||
/* xfer the parent's bookmark so the child starts from that place */
|
||||
jdata->bookmark = parent->bookmark;
|
||||
|
||||
/* launch it */
|
||||
if (ORTE_SUCCESS != (rc = orte_plm.spawn(jdata))) {
|
||||
ORTE_ERROR_LOG(rc);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user