2005-03-14 23:57:21 +03:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2006-08-23 07:32:36 +04:00
|
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
2005-11-05 22:57:48 +03:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2006-06-08 22:27:17 +04:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2005-03-14 23:57:21 +03:00
|
|
|
* 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.
|
2005-03-14 23:57:21 +03:00
|
|
|
* $COPYRIGHT$
|
2006-06-08 22:27:17 +04:00
|
|
|
*
|
2005-03-14 23:57:21 +03:00
|
|
|
* Additional copyrights may follow
|
2006-06-08 22:27:17 +04:00
|
|
|
*
|
2005-03-14 23:57:21 +03:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
2005-08-22 22:02:10 +04:00
|
|
|
/**
|
|
|
|
* @file:
|
|
|
|
* Part of the rsh launcher. See pls_rsh.h for an overview of how it works.
|
|
|
|
*/
|
2005-03-14 23:57:21 +03:00
|
|
|
|
|
|
|
#ifndef ORTE_PLS_RSH_EXPORT_H
|
|
|
|
#define ORTE_PLS_RSH_EXPORT_H
|
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "orte_config.h"
|
2005-03-14 23:57:21 +03:00
|
|
|
|
2005-07-04 02:45:48 +04:00
|
|
|
#include "opal/threads/condition.h"
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "orte/mca/pls/pls.h"
|
2005-03-14 23:57:21 +03: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 10:58:37 +04:00
|
|
|
|
2005-03-14 23:57:21 +03: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);
|
2006-09-15 01:29:51 +04:00
|
|
|
int orte_pls_rsh_terminate_orteds(orte_jobid_t);
|
2005-03-14 23:57:21 +03:00
|
|
|
int orte_pls_rsh_terminate_proc(const orte_process_name_t* proc_name);
|
2006-06-08 22:27:17 +04: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 23:57:21 +03:00
|
|
|
/**
|
|
|
|
* PLS Component
|
|
|
|
*/
|
|
|
|
struct orte_pls_rsh_component_t {
|
|
|
|
orte_pls_base_component_t super;
|
2005-08-04 19:09:02 +04:00
|
|
|
bool debug;
|
|
|
|
bool reap;
|
|
|
|
bool assume_same_shell;
|
2005-03-18 06:43:59 +03:00
|
|
|
int delay;
|
2005-03-14 23:57:21 +03:00
|
|
|
int priority;
|
2005-12-22 17:37:19 +03:00
|
|
|
char *agent_param;
|
|
|
|
char** agent_argv;
|
|
|
|
int agent_argc;
|
|
|
|
char* agent_path;
|
2005-03-14 23:57:21 +03:00
|
|
|
char* orted;
|
|
|
|
size_t num_children;
|
|
|
|
size_t num_concurrent;
|
2005-07-04 02:45:48 +04:00
|
|
|
opal_mutex_t lock;
|
|
|
|
opal_condition_t cond;
|
2005-03-14 23:57:21 +03:00
|
|
|
};
|
|
|
|
typedef struct orte_pls_rsh_component_t orte_pls_rsh_component_t;
|
2005-08-30 10:58:37 +04:00
|
|
|
|
2006-08-23 07:32:36 +04:00
|
|
|
ORTE_MODULE_DECLSPEC extern orte_pls_rsh_component_t mca_pls_rsh_component;
|
|
|
|
extern orte_pls_base_module_t orte_pls_rsh_module;
|
2005-03-14 23:57:21 +03:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* ORTE_PLS_RSH_EXPORT_H */
|