2005-03-14 20:57:21 +00:00
|
|
|
/*
|
2006-02-16 20:40:23 +00:00
|
|
|
* Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
|
2005-11-05 19:57:48 +00:00
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2006-08-23 03:32:36 +00:00
|
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
2005-11-05 19:57:48 +00:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-03-14 20:57:21 +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.
|
2005-03-14 20:57:21 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/** @file:
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_PLS_BASE_H
|
|
|
|
#define MCA_PLS_BASE_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* includes
|
|
|
|
*/
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte_config.h"
|
2006-09-14 21:29:51 +00:00
|
|
|
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "opal/mca/mca.h"
|
2006-09-14 21:29:51 +00:00
|
|
|
#include "opal/class/opal_list.h"
|
2006-11-13 21:51:34 +00:00
|
|
|
#include "opal/threads/condition.h"
|
2006-09-14 21:29:51 +00:00
|
|
|
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte/mca/pls/pls.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2006-11-13 21:51:34 +00:00
|
|
|
* Struct to hold data global to the pls framework
|
2005-03-14 20:57:21 +00:00
|
|
|
*/
|
|
|
|
typedef struct orte_pls_base_t {
|
|
|
|
/** Verbose/debug output stream */
|
|
|
|
int pls_output;
|
|
|
|
/** List of opened components */
|
2006-09-14 21:29:51 +00:00
|
|
|
opal_list_t available_components;
|
2006-09-29 12:45:50 +00:00
|
|
|
/** indicate a component has been selected */
|
|
|
|
bool selected;
|
2006-09-14 21:29:51 +00:00
|
|
|
/** selected component */
|
|
|
|
orte_pls_base_component_t selected_component;
|
2006-11-13 21:51:34 +00:00
|
|
|
/* orted cmd comm lock */
|
|
|
|
opal_mutex_t orted_cmd_lock;
|
|
|
|
/* orted cmd cond */
|
|
|
|
opal_condition_t orted_cmd_cond;
|
2005-03-14 20:57:21 +00:00
|
|
|
} orte_pls_base_t;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Global instance of pls-wide framework data
|
|
|
|
*/
|
2006-08-20 15:54:04 +00:00
|
|
|
ORTE_DECLSPEC extern orte_pls_base_t orte_pls_base;
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Global functions for MCA overall collective open and close
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Open the pls framework
|
|
|
|
*/
|
2006-08-20 15:54:04 +00:00
|
|
|
ORTE_DECLSPEC int orte_pls_base_open(void);
|
2005-03-14 20:57:21 +00:00
|
|
|
/**
|
|
|
|
* Select a pls module
|
|
|
|
*/
|
2006-09-14 21:29:51 +00:00
|
|
|
ORTE_DECLSPEC int orte_pls_base_select(void);
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
/**
|
|
|
|
* Close the pls framework
|
|
|
|
*/
|
2006-08-20 15:54:04 +00:00
|
|
|
ORTE_DECLSPEC int orte_pls_base_finalize(void);
|
|
|
|
ORTE_DECLSPEC int orte_pls_base_close(void);
|
2006-08-23 03:32:36 +00:00
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|