2005-07-28 03:18:16 +04:00
|
|
|
/*
|
2008-05-06 22:08:45 +04:00
|
|
|
* Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
|
2005-11-05 22:57:48 +03:00
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2011-06-24 00:38:02 +04:00
|
|
|
* Copyright (c) 2004-2011 The University of Tennessee and The University
|
2005-11-05 22:57:48 +03:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-07-28 03:18:16 +04:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2011-11-02 21:42:06 +04:00
|
|
|
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
|
2012-03-09 02:02:28 +04:00
|
|
|
* Copyright (c) 2012 Oak Ridge National Labs. All rights reserved.
|
2005-07-28 03:18:16 +04:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
2008-02-28 04:57:57 +03:00
|
|
|
#include "orte/constants.h"
|
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal/mca/mca.h"
|
2009-02-14 05:26:12 +03:00
|
|
|
#include "opal/util/output.h"
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal/mca/base/base.h"
|
2008-02-28 04:57:57 +03:00
|
|
|
|
|
|
|
#include "orte/mca/ess/base/base.h"
|
2005-07-28 03:18:16 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The following file was created by configure. It contains extern
|
|
|
|
* statements and the definition of an array of pointers to each
|
|
|
|
* module's public mca_base_module_t struct.
|
|
|
|
*/
|
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
#include "orte/mca/ess/base/static-components.h"
|
2005-07-28 03:18:16 +04:00
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
opal_list_t orte_ess_base_components_available;
|
|
|
|
orte_ess_base_module_t orte_ess = {
|
2011-06-24 00:38:02 +04:00
|
|
|
NULL, /* init */
|
|
|
|
NULL, /* finalize */
|
|
|
|
NULL, /* abort */
|
|
|
|
NULL, /* proc_get_locality */
|
|
|
|
NULL, /* proc_get_daemon */
|
|
|
|
NULL, /* proc_get_hostname */
|
|
|
|
NULL, /* get_local_rank */
|
|
|
|
NULL, /* get_node_rank */
|
|
|
|
NULL, /* update_pidmap */
|
|
|
|
NULL, /* update_nidmap */
|
|
|
|
NULL /* ft_event */
|
2008-02-28 04:57:57 +03:00
|
|
|
};
|
|
|
|
int orte_ess_base_output;
|
2012-03-09 02:02:28 +04:00
|
|
|
int orte_ess_base_std_buffering = -1;
|
2005-07-28 03:18:16 +04:00
|
|
|
|
|
|
|
int
|
2008-02-28 04:57:57 +03:00
|
|
|
orte_ess_base_open(void)
|
2005-07-28 03:18:16 +04:00
|
|
|
{
|
2012-03-09 02:02:28 +04:00
|
|
|
mca_base_param_reg_int_name("ess_base",
|
|
|
|
"stream_buffering",
|
|
|
|
"Adjust buffering for stdout/stderr "
|
|
|
|
"[-1 system default] [0 unbuffered] [1 line buffered] [2 fully buffered] "
|
|
|
|
"(Default: -1)",
|
|
|
|
false, false,
|
|
|
|
-1, &orte_ess_base_std_buffering);
|
|
|
|
|
2008-06-09 18:53:58 +04:00
|
|
|
orte_ess_base_output = opal_output_open(NULL);
|
2008-02-28 04:57:57 +03:00
|
|
|
|
|
|
|
OBJ_CONSTRUCT(&orte_ess_base_components_available, opal_list_t);
|
2005-07-28 03:18:16 +04:00
|
|
|
|
|
|
|
/* Open up all available components */
|
2006-02-12 04:33:29 +03:00
|
|
|
if (ORTE_SUCCESS !=
|
2008-02-28 04:57:57 +03:00
|
|
|
mca_base_components_open("ess", orte_ess_base_output, mca_ess_base_static_components,
|
|
|
|
&orte_ess_base_components_available,
|
2005-07-28 03:18:16 +04:00
|
|
|
true)) {
|
2011-11-02 21:42:06 +04:00
|
|
|
/* error message emitted by fn above */
|
|
|
|
return ORTE_ERR_SILENT;
|
2005-07-28 03:18:16 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|