2004-03-06 22:40:26 +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-03-06 22:40:26 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
2004-06-07 15:33:53 +00:00
|
|
|
#include "ompi_config.h"
|
2004-03-06 22:40:26 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2005-07-03 23:31:27 +00:00
|
|
|
#include "opal/util/output.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/topo/topo.h"
|
|
|
|
#include "ompi/mca/topo/base/base.h"
|
2004-03-06 22:40:26 +00:00
|
|
|
|
2004-08-02 00:24:22 +00:00
|
|
|
|
|
|
|
int mca_topo_base_close(void)
|
|
|
|
{
|
|
|
|
/* We have to close all the components which are open. This might either
|
|
|
|
be the list of opened components or the list of available components.
|
|
|
|
Note that the components which are opened but are not available are
|
2004-07-20 22:32:45 +00:00
|
|
|
already closed */
|
2004-03-06 22:40:26 +00:00
|
|
|
|
2004-08-02 00:24:22 +00:00
|
|
|
if (mca_topo_base_components_opened_valid) {
|
|
|
|
mca_base_components_close (mca_topo_base_output,
|
|
|
|
&mca_topo_base_components_opened, NULL);
|
|
|
|
mca_topo_base_components_opened_valid = false;
|
|
|
|
} else if (mca_topo_base_components_available_valid) {
|
|
|
|
mca_base_components_close (mca_topo_base_output,
|
|
|
|
&mca_topo_base_components_available, NULL);
|
|
|
|
mca_topo_base_components_available_valid = false;
|
2004-07-20 22:32:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Close the output stream for this framework */
|
2005-07-03 23:31:27 +00:00
|
|
|
opal_output_close (mca_topo_base_output);
|
2004-03-06 22:40:26 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* All done
|
|
|
|
*/
|
2004-06-07 15:33:53 +00:00
|
|
|
return OMPI_SUCCESS;
|
2004-03-06 22:40:26 +00:00
|
|
|
}
|