bd65f8ba88
Short description: major changes include - 1. singletons now fork/exec a local daemon to manage their operations. 2. the orte daemon code now resides in libopen-rte 3. daemons no longer use the orte triggering system during startup. Instead, they directly call back to their parent pls component to report ready to operate. A base function to count the callbacks has been provided. I have modified all the pls components except xcpu and poe (don't understand either well enough to do it). Full functionality has been verified for rsh, SLURM, and TM systems. Compile has been verified for xgrid and gridengine. This commit was SVN r15390.
87 строки
3.0 KiB
C
87 строки
3.0 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2006 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$
|
|
*/
|
|
/** @file:
|
|
*
|
|
* The OpenRTE Schema.
|
|
*/
|
|
|
|
#ifndef ORTE_SCHEMA_BASE_H_
|
|
#define ORTE_SCHEMA_BASE_H_
|
|
|
|
/*
|
|
* includes
|
|
*/
|
|
#include "orte_config.h"
|
|
|
|
#include "orte/orte_constants.h"
|
|
#include "orte/orte_types.h"
|
|
|
|
#include "opal/class/opal_list.h"
|
|
|
|
#include "opal/mca/mca.h"
|
|
#include "opal/mca/base/base.h"
|
|
#include "opal/mca/base/mca_base_param.h"
|
|
|
|
#include "orte/mca/ns/ns_types.h"
|
|
|
|
#include "orte/mca/schema/schema.h"
|
|
|
|
/*
|
|
* Global functions for MCA overall collective open and close
|
|
*/
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
ORTE_DECLSPEC int orte_schema_base_open(void);
|
|
ORTE_DECLSPEC int orte_schema_base_select(void);
|
|
ORTE_DECLSPEC int orte_schema_base_close(void);
|
|
|
|
/* general usage functions */
|
|
int orte_schema_base_get_proc_tokens(char ***tokens, orte_std_cntr_t* num_tokens, orte_process_name_t *proc);
|
|
int orte_schema_base_get_node_tokens(char ***tokens, orte_std_cntr_t* num_tokens, orte_cellid_t cellid, char *nodename);
|
|
int orte_schema_base_get_job_tokens(char ***tokens, orte_std_cntr_t* num_tokens, orte_jobid_t jobid);
|
|
int orte_schema_base_get_cell_tokens(char ***tokens, orte_std_cntr_t* num_tokens, orte_cellid_t cellid);
|
|
int orte_schema_base_get_job_segment_name(char **name, orte_jobid_t jobid);
|
|
int orte_schema_base_extract_jobid_from_segment_name(orte_jobid_t *jobid, char *name);
|
|
int orte_schema_base_store_my_info(void);
|
|
int orte_schema_base_get_std_trigger_name(char **name,
|
|
char *trigger,
|
|
orte_jobid_t jobid);
|
|
bool orte_schema_base_check_std_trigger_name(char *name, char *trig);
|
|
int orte_schema_base_extract_jobid_from_std_trigger_name(orte_jobid_t *jobid,
|
|
char *trig);
|
|
int orte_schema_base_get_std_subscription_name(char **name,
|
|
char *subscription,
|
|
orte_jobid_t jobid);
|
|
|
|
/*
|
|
* globals that might be needed inside the schema framework
|
|
*/
|
|
extern int orte_schema_base_output;
|
|
extern bool orte_schema_base_selected;
|
|
ORTE_DECLSPEC extern opal_list_t orte_schema_base_components_available;
|
|
ORTE_DECLSPEC extern mca_schema_base_component_t orte_schema_base_selected_component;
|
|
extern bool orte_schema_initialized;
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif
|