~james-page/ubuntu/precise/openmpi1.5/new

« back to all changes in this revision

Viewing changes to orte/mca/ess/base/ess_base_std_orted.c

  • Committer: Bazaar Package Importer
  • Author(s): Manuel Prinz
  • Date: 2009-04-23 14:01:21 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090423140121-vsi3pqa6g30j4qiy
Tags: 1.3.2-1
* New upstream release. (Closes: #520597, #515116)
  - Manpage and VampirTrace patches removed, included upstream.
* Fixed build issues on Alpha. Huge thanks to Arthur Loiret for providing
  access to his machines for testing! (Closes: #510845, #517543)
* Fixed build issues on Sparc. (Closes: #519725)
* Fixed manpage-has-errors-from-man lintian warnings.
* Faked SONAME change by renaming library package. (Closes: #512616)
* Made libopenmpi-dev depend on libibverbs-dev. (Closes: #522153)
* Support for "nocheck" build option in debian/rules.
* Updated Standards-Version in debian/control.
* Changed section of libopenmpi-dbg to "debug".
* Updated debian/copyright.

* Dirk Eddelbuettel removed himself from Uploaders. The team thanks Dirk
  for his long-term contribution and effort to get Open MPI back to life.
  I personally thank Dirk for encouraging me to become a Debian Developer
  and his support and mentoring on that way and beyond.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    char *error = NULL;
67
67
    char *plm_to_use;
68
68
 
 
69
    /* initialize the global list of local children and job data */
 
70
    OBJ_CONSTRUCT(&orte_local_children, opal_list_t);
 
71
    OBJ_CONSTRUCT(&orte_local_jobdata, opal_list_t);
 
72
    
69
73
    /* some environments allow remote launches - e.g., ssh - so
70
74
     * open the PLM and select something -only- if we are given
71
75
     * a specific module to use
272
276
 
273
277
int orte_ess_base_orted_finalize(void)
274
278
{
275
 
    opal_buffer_t ack;
276
 
    orte_proc_state_t state=ORTE_PROC_STATE_TERMINATED;
277
 
    orte_exit_code_t exit_code=0;
278
 
    orte_plm_cmd_flag_t cmd = ORTE_PLM_UPDATE_PROC_STATE;
279
 
 
280
 
    /* send a state update so the HNP knows we are "gone" */    
281
 
    OBJ_CONSTRUCT(&ack, opal_buffer_t);
282
 
    opal_dss.pack(&ack, &cmd, 1, ORTE_PLM_CMD);
283
 
    opal_dss.pack(&ack, &(ORTE_PROC_MY_NAME->jobid), 1, ORTE_JOBID);        
284
 
    opal_dss.pack(&ack, &(ORTE_PROC_MY_NAME->vpid), 1, ORTE_VPID);        
285
 
    opal_dss.pack(&ack, &state, 1, ORTE_PROC_STATE);        
286
 
    opal_dss.pack(&ack, &exit_code, 1, ORTE_EXIT_CODE);
287
 
    orte_rml.send_buffer(ORTE_PROC_MY_HNP, &ack, ORTE_RML_TAG_PLM, 0);
288
 
    OBJ_DESTRUCT(&ack);
289
 
    /* progress the OOB to ensure the message gets out */
290
 
    opal_progress();
 
279
    opal_list_item_t *item;
291
280
    
292
281
    orte_notifier_base_close();
293
282
    
314
303
    orte_routed_base_close();
315
304
    orte_rml_base_close();
316
305
        
 
306
    /* cleanup the global list of local children and job data */
 
307
    while (NULL != (item = opal_list_remove_first(&orte_local_children))) {
 
308
        OBJ_RELEASE(item);
 
309
    }
 
310
    OBJ_DESTRUCT(&orte_local_children);
 
311
    while (NULL != (item = opal_list_remove_first(&orte_local_jobdata))) {
 
312
        OBJ_RELEASE(item);
 
313
    }
 
314
    OBJ_DESTRUCT(&orte_local_jobdata);
 
315
    
317
316
    /* cleanup any lingering session directories */
318
317
    orte_session_dir_cleanup(ORTE_JOBID_WILDCARD);
319
318