2004-01-29 02:43:58 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 20:09:25 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-01-29 02:43:58 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2004-06-07 15:33:53 +00:00
|
|
|
#include "ompi_config.h"
|
2004-01-29 02:43:58 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "ompi/constants.h"
|
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "opal/mca/base/base.h"
|
|
|
|
#include "ompi/mca/pml/pml.h"
|
|
|
|
#include "ompi/mca/pml/base/base.h"
|
2005-09-12 20:22:59 +00:00
|
|
|
#include "opal/runtime/opal_progress.h"
|
2004-01-29 02:43:58 +00:00
|
|
|
|
|
|
|
int mca_pml_base_close(void)
|
|
|
|
{
|
2005-03-18 03:43:59 +00:00
|
|
|
/* turn off the progress code for the pml */
|
2005-07-03 21:57:43 +00:00
|
|
|
opal_progress_unregister(mca_pml.pml_progress);
|
2005-03-18 03:43:59 +00:00
|
|
|
|
2004-01-30 22:28:32 +00:00
|
|
|
/* Blatently ignore the return code (what would we do to recover,
|
|
|
|
anyway? This module is going away, so errors don't matter
|
|
|
|
anymore) */
|
|
|
|
|
2005-01-13 15:30:49 +00:00
|
|
|
mca_pml.pml_progress = mca_pml_base_progress;
|
2004-08-02 00:24:22 +00:00
|
|
|
if (NULL != mca_pml_base_selected_component.pmlm_finalize) {
|
|
|
|
mca_pml_base_selected_component.pmlm_finalize();
|
2004-01-30 22:56:36 +00:00
|
|
|
}
|
2004-01-30 22:28:32 +00:00
|
|
|
|
2007-04-05 13:52:05 +00:00
|
|
|
OBJ_DESTRUCT(&mca_pml_base_pml);
|
|
|
|
|
2004-01-29 02:43:58 +00:00
|
|
|
/* Close all remaining available modules (may be one if this is a
|
2004-06-07 15:33:53 +00:00
|
|
|
OMPI RTE program, or [possibly] multiple if this is ompi_info) */
|
2004-01-29 02:43:58 +00:00
|
|
|
|
2004-08-02 00:24:22 +00:00
|
|
|
mca_base_components_close(mca_pml_base_output,
|
|
|
|
&mca_pml_base_components_available, NULL);
|
2004-01-29 02:43:58 +00:00
|
|
|
|
|
|
|
/* All done */
|
|
|
|
|
2004-06-07 15:33:53 +00:00
|
|
|
return OMPI_SUCCESS;
|
2004-01-29 02:43:58 +00:00
|
|
|
}
|
2004-01-29 23:50:31 +00:00
|
|
|
|