2004-07-11 04:48:00 +00:00
|
|
|
/* -*- C -*-
|
2004-11-22 01:38:40 +00: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 20:09:25 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
2004-07-11 04:48:00 +00:00
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef NS_PROXY_H
|
|
|
|
#define NS_PROXY_H
|
|
|
|
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
#include "orte_config.h"
|
2004-07-11 04:48:00 +00:00
|
|
|
#include "include/types.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
#include "include/orte_constants.h"
|
2004-07-11 04:48:00 +00:00
|
|
|
#include "class/ompi_list.h"
|
2005-05-01 00:54:12 +00:00
|
|
|
#include "dps/dps.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
#include "mca/ns/base/base.h"
|
|
|
|
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2005-03-14 20:57:21 +00:00
|
|
|
|
2005-05-16 21:01:09 +00:00
|
|
|
struct orte_ns_proxy_cell_info_t {
|
|
|
|
ompi_list_item_t item; /**< Allows this item to be placed on a list */
|
|
|
|
orte_cellid_t cellid;
|
|
|
|
char *site;
|
|
|
|
char *resource;
|
|
|
|
};
|
|
|
|
typedef struct orte_ns_proxy_cell_info_t orte_ns_proxy_cell_info_t;
|
|
|
|
|
|
|
|
OBJ_CLASS_DECLARATION(orte_ns_proxy_cell_info_t);
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
struct orte_ns_proxy_tagitem_t {
|
|
|
|
ompi_list_item_t item; /**< Allows this item to be placed on a list */
|
|
|
|
orte_rml_tag_t tag; /**< OOB tag */
|
|
|
|
char *name; /**< Name associated with tag */
|
|
|
|
};
|
|
|
|
typedef struct orte_ns_proxy_tagitem_t orte_ns_proxy_tagitem_t;
|
|
|
|
|
|
|
|
OBJ_CLASS_DECLARATION(orte_ns_proxy_tagitem_t);
|
|
|
|
|
2005-05-01 00:54:12 +00:00
|
|
|
struct orte_ns_proxy_dti_t {
|
|
|
|
ompi_list_item_t item; /**< Allows this item to be placed on a list */
|
|
|
|
orte_data_type_t id; /**< data type id */
|
|
|
|
char *name; /**< Name associated with data type */
|
|
|
|
};
|
|
|
|
typedef struct orte_ns_proxy_dti_t orte_ns_proxy_dti_t;
|
|
|
|
|
|
|
|
OBJ_CLASS_DECLARATION(orte_ns_proxy_dti_t);
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
|
2004-07-11 04:48:00 +00:00
|
|
|
/*
|
|
|
|
* Module open / close
|
|
|
|
*/
|
2005-03-14 20:57:21 +00:00
|
|
|
int orte_ns_proxy_open(void);
|
|
|
|
int orte_ns_proxy_close(void);
|
2004-07-11 04:48:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Startup / Shutdown
|
|
|
|
*/
|
2005-03-14 20:57:21 +00:00
|
|
|
mca_ns_base_module_t* orte_ns_proxy_init(int *priority);
|
|
|
|
int orte_ns_proxy_module_init(void);
|
|
|
|
int orte_ns_proxy_finalize(void);
|
2004-07-11 04:48:00 +00:00
|
|
|
|
2004-07-12 20:35:19 +00:00
|
|
|
/*
|
|
|
|
* globals used within proxy component
|
|
|
|
*/
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
extern orte_process_name_t *orte_ns_my_replica;
|
|
|
|
extern int orte_ns_proxy_debug;
|
2005-05-16 21:01:09 +00:00
|
|
|
extern ompi_list_t orte_ns_proxy_cell_info_list;
|
2005-03-14 20:57:21 +00:00
|
|
|
extern ompi_list_t orte_ns_proxy_taglist;
|
2005-05-01 00:54:12 +00:00
|
|
|
extern ompi_list_t orte_ns_proxy_dtlist;
|
2005-03-14 20:57:21 +00:00
|
|
|
extern ompi_mutex_t orte_ns_proxy_mutex;
|
2004-09-03 13:54:34 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* proxy function prototypes
|
|
|
|
*/
|
2005-05-16 21:01:09 +00:00
|
|
|
int orte_ns_proxy_create_cellid(orte_cellid_t *cellid, char *site, char *resource);
|
|
|
|
|
|
|
|
int orte_ns_proxy_get_cell_info(orte_cellid_t cellid, char **site, char **resource);
|
2004-09-03 13:54:34 +00:00
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
int orte_ns_proxy_create_jobid(orte_jobid_t *jobid);
|
2004-09-03 13:54:34 +00:00
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
int orte_ns_proxy_reserve_range(orte_jobid_t job, orte_vpid_t range,
|
|
|
|
orte_vpid_t *startvpid);
|
2004-09-03 13:54:34 +00:00
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
int orte_ns_proxy_assign_rml_tag(orte_rml_tag_t *tag, char *name);
|
2004-09-03 13:54:34 +00:00
|
|
|
|
2005-05-01 00:58:06 +00:00
|
|
|
int orte_ns_proxy_define_data_type(const char *name,
|
|
|
|
orte_data_type_t *type);
|
2005-05-01 00:54:12 +00:00
|
|
|
|
2005-05-24 13:39:15 +00:00
|
|
|
int orte_ns_proxy_create_my_name(void);
|
|
|
|
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
2004-09-03 13:54:34 +00:00
|
|
|
|
2004-07-11 04:48:00 +00:00
|
|
|
#endif
|