2007-07-20 05:34:02 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2007 Los Alamos National Security, LLC.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_ROUTED_BASE_H
|
|
|
|
#define MCA_ROUTED_BASE_H
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
|
|
|
|
|
|
|
#include "opal/mca/mca.h"
|
2008-11-01 00:10:00 +03:00
|
|
|
|
2010-07-20 12:30:47 +04:00
|
|
|
#include "opal/class/opal_pointer_array.h"
|
2009-03-13 05:10:32 +03:00
|
|
|
#include "opal/dss/dss_types.h"
|
2010-04-23 08:44:41 +04:00
|
|
|
#include "opal/threads/threads.h"
|
2009-03-13 05:10:32 +03:00
|
|
|
|
|
|
|
#include "orte/mca/rml/rml_types.h"
|
2007-07-20 05:34:02 +04:00
|
|
|
#include "orte/mca/routed/routed.h"
|
|
|
|
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
|
2008-06-18 07:15:56 +04:00
|
|
|
ORTE_DECLSPEC int orte_routed_base_open(void);
|
|
|
|
|
|
|
|
#if !ORTE_DISABLE_FULL_SUPPORT
|
|
|
|
|
2007-07-20 05:34:02 +04:00
|
|
|
/*
|
|
|
|
* Global functions for the ROUTED
|
|
|
|
*/
|
|
|
|
|
|
|
|
ORTE_DECLSPEC int orte_routed_base_select(void);
|
|
|
|
ORTE_DECLSPEC int orte_routed_base_close(void);
|
|
|
|
|
|
|
|
ORTE_DECLSPEC extern int orte_routed_base_output;
|
|
|
|
ORTE_DECLSPEC extern opal_list_t orte_routed_base_components;
|
2010-04-23 08:44:41 +04:00
|
|
|
ORTE_DECLSPEC extern opal_mutex_t orte_routed_base_lock;
|
|
|
|
ORTE_DECLSPEC extern opal_condition_t orte_routed_base_cond;
|
|
|
|
ORTE_DECLSPEC extern bool orte_routed_base_wait_sync;
|
2010-07-20 12:30:47 +04:00
|
|
|
ORTE_DECLSPEC extern opal_pointer_array_t orte_routed_jobfams;
|
2007-07-20 05:34:02 +04:00
|
|
|
|
2012-04-06 18:23:13 +04:00
|
|
|
ORTE_DECLSPEC void orte_routed_base_xcast_routing(orte_grpcomm_collective_t *coll,
|
|
|
|
opal_list_t *my_children);
|
|
|
|
ORTE_DECLSPEC void orte_routed_base_coll_relay_routing(orte_grpcomm_collective_t *coll);
|
|
|
|
ORTE_DECLSPEC void orte_routed_base_coll_complete_routing(orte_grpcomm_collective_t *coll);
|
|
|
|
ORTE_DECLSPEC void orte_routed_base_coll_peers(orte_grpcomm_collective_t *coll,
|
|
|
|
opal_list_t *my_children);
|
|
|
|
|
2010-07-20 12:30:47 +04:00
|
|
|
ORTE_DECLSPEC int orte_routed_base_register_sync(bool setup);
|
|
|
|
ORTE_DECLSPEC int orte_routed_base_process_callback(orte_jobid_t job,
|
|
|
|
opal_buffer_t *buffer);
|
|
|
|
ORTE_DECLSPEC void orte_routed_base_update_hnps(opal_buffer_t *buf);
|
2008-02-28 04:57:57 +03:00
|
|
|
|
2008-06-18 07:15:56 +04:00
|
|
|
#endif /* ORTE_DISABLE_FULL_SUPPORT */
|
2008-02-28 22:58:32 +03:00
|
|
|
|
2007-07-20 05:34:02 +04:00
|
|
|
END_C_DECLS
|
|
|
|
|
|
|
|
#endif /* MCA_ROUTED_BASE_H */
|