2005-08-27 00:13:35 +04:00
|
|
|
/*
|
2005-11-05 22:57:48 +03: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.
|
2005-08-27 00:13:35 +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.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "orte/orte_constants.h"
|
2005-08-27 00:13:35 +04:00
|
|
|
|
2007-01-25 17:17:44 +03:00
|
|
|
#ifdef HAVE_SYS_TIME_H
|
|
|
|
#include <sys/time.h>
|
|
|
|
#endif
|
|
|
|
|
2005-08-27 00:13:35 +04:00
|
|
|
#include "opal/mca/base/mca_base_param.h"
|
2007-01-25 17:17:44 +03:00
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "orte/runtime/runtime.h"
|
2007-01-25 17:17:44 +03:00
|
|
|
#include "orte/runtime/params.h"
|
|
|
|
|
|
|
|
/* globals used by RTE */
|
|
|
|
int orte_debug_flag;
|
|
|
|
struct timeval orte_abort_timeout;
|
2007-01-30 01:01:28 +03:00
|
|
|
/*
|
|
|
|
* Whether we have completed orte_init or not
|
|
|
|
*/
|
|
|
|
bool orte_initialized = false;
|
2005-08-27 00:13:35 +04:00
|
|
|
|
|
|
|
int orte_register_params(bool infrastructure)
|
|
|
|
{
|
2007-01-25 17:17:44 +03:00
|
|
|
int value;
|
|
|
|
|
2006-12-13 07:51:38 +03:00
|
|
|
mca_base_param_reg_int_name("orte", "debug",
|
|
|
|
"Top-level ORTE debug switch",
|
2007-01-25 17:17:44 +03:00
|
|
|
false, false, (int)false, &value);
|
|
|
|
orte_debug_flag = OPAL_INT_TO_BOOL(value);
|
2006-12-13 07:51:38 +03:00
|
|
|
|
|
|
|
mca_base_param_reg_int_name("orte_debug", "daemons_file",
|
|
|
|
"Whether want stdout/stderr of daemons to go to a file or not",
|
|
|
|
false, false, (int)false, NULL);
|
|
|
|
|
|
|
|
mca_base_param_reg_int_name("orte", "no_daemonize",
|
|
|
|
"Whether to properly daemonize the ORTE daemons or not",
|
|
|
|
false, false, (int)false, NULL);
|
|
|
|
|
|
|
|
mca_base_param_reg_int_name("orte_debug", "daemons",
|
|
|
|
"Whether to debug the ORTE daemons or not",
|
|
|
|
false, false, (int)false, NULL);
|
|
|
|
|
2005-11-20 19:06:53 +03:00
|
|
|
mca_base_param_reg_int_name("orte", "infrastructure",
|
|
|
|
"Whether we are ORTE infrastructure or an ORTE application",
|
|
|
|
true, true, (int)infrastructure, NULL);
|
2005-08-27 00:13:35 +04:00
|
|
|
|
2005-11-20 19:06:53 +03:00
|
|
|
/* User-level debugger info string */
|
2005-08-27 00:13:35 +04:00
|
|
|
|
2005-11-20 19:06:53 +03:00
|
|
|
mca_base_param_reg_string_name("orte", "base_user_debugger",
|
|
|
|
"Sequence of user-level debuggers to search for in orterun",
|
2005-11-21 20:00:36 +03:00
|
|
|
false, false, "totalview @mpirun@ -a @mpirun_args@ : fxp @mpirun@ -a @mpirun_args@", NULL);
|
2005-11-20 19:06:53 +03:00
|
|
|
|
2007-01-25 17:17:44 +03:00
|
|
|
|
|
|
|
mca_base_param_reg_int_name("orte", "abort_timeout",
|
|
|
|
"Time to wait [in seconds] before giving up on aborting an ORTE operation",
|
|
|
|
false, false, 10, &value);
|
|
|
|
orte_abort_timeout.tv_sec = value;
|
|
|
|
orte_abort_timeout.tv_usec = 0;
|
|
|
|
|
2005-11-20 19:06:53 +03:00
|
|
|
/* All done */
|
2005-08-27 00:13:35 +04:00
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|