2005-03-14 20:57:21 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00: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.
|
2006-06-08 18:27:17 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2005-03-14 20:57:21 +00:00
|
|
|
* 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.
|
2005-03-14 20:57:21 +00:00
|
|
|
* $COPYRIGHT$
|
2006-06-08 18:27:17 +00:00
|
|
|
*
|
2005-03-14 20:57:21 +00:00
|
|
|
* Additional copyrights may follow
|
2006-06-08 18:27:17 +00:00
|
|
|
*
|
2005-03-14 20:57:21 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
2005-08-22 18:02:10 +00:00
|
|
|
/**
|
|
|
|
* @file:
|
|
|
|
* Part of the rsh launcher. See pls_rsh.h for an overview of how it works.
|
|
|
|
*/
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
#ifndef ORTE_PLS_RSH_EXPORT_H
|
|
|
|
#define ORTE_PLS_RSH_EXPORT_H
|
|
|
|
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte_config.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
|
2005-07-03 22:45:48 +00:00
|
|
|
#include "opal/threads/condition.h"
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "orte/mca/pls/pls.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Module open / close
|
|
|
|
*/
|
|
|
|
int orte_pls_rsh_component_open(void);
|
|
|
|
int orte_pls_rsh_component_close(void);
|
|
|
|
orte_pls_base_module_t* orte_pls_rsh_component_init(int *priority);
|
2005-08-30 06:58:37 +00:00
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
/*
|
|
|
|
* Startup / Shutdown
|
|
|
|
*/
|
|
|
|
int orte_pls_rsh_finalize(void);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Interface
|
|
|
|
*/
|
|
|
|
int orte_pls_rsh_launch(orte_jobid_t);
|
|
|
|
int orte_pls_rsh_terminate_job(orte_jobid_t);
|
|
|
|
int orte_pls_rsh_terminate_proc(const orte_process_name_t* proc_name);
|
2006-06-08 18:27:17 +00:00
|
|
|
int orte_pls_rsh_signal_job(orte_jobid_t, int32_t);
|
|
|
|
int orte_pls_rsh_signal_proc(const orte_process_name_t* proc_name, int32_t);
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
/**
|
|
|
|
* PLS Component
|
|
|
|
*/
|
|
|
|
struct orte_pls_rsh_component_t {
|
|
|
|
orte_pls_base_component_t super;
|
2005-08-04 15:09:02 +00:00
|
|
|
bool debug;
|
|
|
|
bool reap;
|
|
|
|
bool assume_same_shell;
|
2005-03-18 03:43:59 +00:00
|
|
|
int delay;
|
2005-03-14 20:57:21 +00:00
|
|
|
int priority;
|
2005-12-22 14:37:19 +00:00
|
|
|
char *agent_param;
|
|
|
|
char** agent_argv;
|
|
|
|
int agent_argc;
|
|
|
|
char* agent_path;
|
2005-03-14 20:57:21 +00:00
|
|
|
char* orted;
|
|
|
|
size_t num_children;
|
|
|
|
size_t num_concurrent;
|
2005-07-03 22:45:48 +00:00
|
|
|
opal_mutex_t lock;
|
|
|
|
opal_condition_t cond;
|
2005-03-14 20:57:21 +00:00
|
|
|
};
|
|
|
|
typedef struct orte_pls_rsh_component_t orte_pls_rsh_component_t;
|
2005-08-30 06:58:37 +00:00
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
ORTE_DECLSPEC extern orte_pls_rsh_component_t mca_pls_rsh_component;
|
|
|
|
ORTE_DECLSPEC extern orte_pls_base_module_t orte_pls_rsh_module;
|
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* ORTE_PLS_RSH_EXPORT_H */
|