566a050c23
- move files out of toplevel include/ and etc/, moving it into the sub-projects - rather than including config headers with <project>/include, have them as <project> - require all headers to be included with a project prefix, with the exception of the config headers ({opal,orte,ompi}_config.h mpi.h, and mpif.h) This commit was SVN r8985.
98 строки
2.3 KiB
C
98 строки
2.3 KiB
C
/*
|
|
* 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.
|
|
* 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$
|
|
*/
|
|
|
|
#ifndef ORTED_H
|
|
#define ORTED_H
|
|
|
|
#include "orte_config.h"
|
|
|
|
#include <string.h>
|
|
|
|
#include "opal/class/opal_list.h"
|
|
#include "opal/threads/mutex.h"
|
|
#include "opal/threads/condition.h"
|
|
|
|
#include "opal/util/cmd_line.h"
|
|
#include "opal/mca/mca.h"
|
|
|
|
/*
|
|
* Definitions needed for communication
|
|
*/
|
|
#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
|
|
|
|
|
|
/*
|
|
* Globals
|
|
*/
|
|
|
|
typedef struct {
|
|
bool help;
|
|
bool no_daemonize;
|
|
bool debug;
|
|
bool debug_daemons;
|
|
bool debug_daemons_file;
|
|
char* ns_nds;
|
|
char* name;
|
|
char* vpid_start;
|
|
char* num_procs;
|
|
char* universe;
|
|
int bootproxy;
|
|
int uri_pipe;
|
|
opal_mutex_t mutex;
|
|
opal_condition_t condition;
|
|
bool exit_condition;
|
|
int mpi_call_yield;
|
|
} orted_globals_t;
|
|
|
|
extern orted_globals_t orted_globals;
|
|
|
|
/*
|
|
* Version-related strings and functions
|
|
*/
|
|
|
|
/* 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; */
|
|
|
|
/* void do_version(bool want_all, opal_cmd_line_t *cmd_line); */
|
|
/* void show_ompi_version(const char *scope); */
|
|
|
|
/*
|
|
* Parameter/configuration-related functions
|
|
*/
|
|
|
|
/* extern char *param_all; */
|
|
|
|
/* extern char *path_prefix; */
|
|
/* extern char *path_bindir; */
|
|
/* extern char *path_libdir; */
|
|
/* extern char *path_incdir; */
|
|
/* extern char *path_pkglibdir; */
|
|
/* extern char *path_sysconfdir; */
|
|
|
|
|
|
#endif /* ORTED_H */
|