2004-08-10 00:33:24 +04: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-08-10 00:33:24 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
2004-08-07 00:23:57 +04:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
#ifndef ORTED_H
|
|
|
|
#define ORTED_H
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
2004-08-07 00:23:57 +04:00
|
|
|
|
2004-08-10 00:33:24 +04:00
|
|
|
#include <string.h>
|
2004-08-07 00:23:57 +04:00
|
|
|
|
|
|
|
#include "class/ompi_list.h"
|
2005-03-14 23:57:21 +03:00
|
|
|
#include "threads/mutex.h"
|
|
|
|
#include "threads/condition.h"
|
|
|
|
|
2004-08-07 00:23:57 +04:00
|
|
|
#include "util/cmd_line.h"
|
|
|
|
#include "mca/mca.h"
|
|
|
|
|
2004-09-03 23:26:49 +04:00
|
|
|
/*
|
|
|
|
* Definitions needed for communication
|
|
|
|
*/
|
2005-03-14 23:57:21 +03:00
|
|
|
#define ORTE_DAEMON_CMD ORTE_INT16
|
2004-09-03 23:26:49 +04:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
#define ORTE_DAEMON_HOSTFILE_CMD 0x01
|
|
|
|
#define ORTE_DAEMON_SCRIPTFILE_CMD 0x02
|
|
|
|
#define ORTE_DAEMON_CONTACT_QUERY_CMD 0x03
|
|
|
|
#define ORTE_DAEMON_HEARTBEAT_CMD 0xfe
|
|
|
|
#define ORTE_DAEMON_EXIT_CMD 0xff
|
2004-09-03 23:26:49 +04:00
|
|
|
|
2004-08-07 00:23:57 +04:00
|
|
|
|
2004-09-07 06:58:49 +04:00
|
|
|
/*
|
|
|
|
* Globals
|
|
|
|
*/
|
2004-08-07 00:23:57 +04:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
typedef uint16_t orte_daemon_cmd_flag_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
bool help;
|
|
|
|
bool version;
|
2005-05-04 15:57:47 +04:00
|
|
|
bool no_daemonize;
|
2005-05-13 01:44:23 +04:00
|
|
|
bool debug_daemons;
|
|
|
|
bool debug_daemons_file;
|
2005-03-14 23:57:21 +03:00
|
|
|
char* name;
|
2005-05-13 01:44:23 +04:00
|
|
|
char* universe;
|
2005-03-14 23:57:21 +03:00
|
|
|
int bootproxy;
|
|
|
|
ompi_mutex_t mutex;
|
|
|
|
ompi_condition_t condition;
|
|
|
|
bool exit_condition;
|
|
|
|
} orted_globals_t;
|
2004-08-07 00:23:57 +04:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
extern orted_globals_t orted_globals;
|
|
|
|
|
2004-09-07 06:58:49 +04:00
|
|
|
/*
|
|
|
|
* Version-related strings and functions
|
|
|
|
*/
|
2004-08-07 00:23:57 +04:00
|
|
|
|
2004-09-11 06:51:32 +04:00
|
|
|
/* extern const char *ver_full; */
|
|
|
|
/* extern const char *ver_major; */
|
|
|
|
/* extern const char *ver_minor; */
|
|
|
|
/* extern const char *ver_release; */
|
|
|
|
/* extern const char *ver_alpha; */
|
|
|
|
/* extern const char *ver_beta; */
|
|
|
|
/* extern const char *ver_svn; */
|
2004-08-10 00:33:24 +04:00
|
|
|
|
2004-09-11 06:51:32 +04:00
|
|
|
/* void do_version(bool want_all, ompi_cmd_line_t *cmd_line); */
|
|
|
|
/* void show_ompi_version(const char *scope); */
|
2004-09-07 06:58:49 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Parameter/configuration-related functions
|
|
|
|
*/
|
2004-08-10 00:33:24 +04:00
|
|
|
|
2004-09-11 06:51:32 +04:00
|
|
|
/* extern char *param_all; */
|
2004-08-10 00:33:24 +04:00
|
|
|
|
2004-09-11 06:51:32 +04:00
|
|
|
/* extern char *path_prefix; */
|
|
|
|
/* extern char *path_bindir; */
|
|
|
|
/* extern char *path_libdir; */
|
|
|
|
/* extern char *path_incdir; */
|
|
|
|
/* extern char *path_pkglibdir; */
|
|
|
|
/* extern char *path_sysconfdir; */
|
2004-08-10 00:33:24 +04:00
|
|
|
|
2004-08-07 00:23:57 +04:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
#endif /* ORTED_H */
|