2004-03-07 01:40:26 +03:00
|
|
|
/*
|
2004-11-22 04:38:40 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-03-07 01:40:26 +03:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2004-03-07 01:40:26 +03:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2005-07-04 03:31:27 +04:00
|
|
|
#include "opal/util/output.h"
|
2004-04-17 00:54:48 +04:00
|
|
|
#include "include/constants.h"
|
2004-03-07 01:40:26 +03:00
|
|
|
#include "mca/mca.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mca/base/base.h"
|
2004-04-17 00:54:48 +04:00
|
|
|
#include "mca/topo/topo.h"
|
|
|
|
#include "mca/topo/base/base.h"
|
2004-03-07 01:40:26 +03:00
|
|
|
|
2004-08-02 04:24:22 +04: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-21 02:32:45 +04:00
|
|
|
already closed */
|
2004-03-07 01:40:26 +03:00
|
|
|
|
2004-08-02 04:24:22 +04: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-21 02:32:45 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Close the output stream for this framework */
|
2005-07-04 03:31:27 +04:00
|
|
|
opal_output_close (mca_topo_base_output);
|
2004-03-07 01:40:26 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* All done
|
|
|
|
*/
|
2004-06-07 19:33:53 +04:00
|
|
|
return OMPI_SUCCESS;
|
2004-03-07 01:40:26 +03:00
|
|
|
}
|