2007-07-20 05:34:02 +04: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.
|
|
|
|
* 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.
|
2012-04-06 18:23:13 +04:00
|
|
|
* Copyright (c) 2011-2012 Los Alamos National Security, LLC.
|
|
|
|
* All rights reserved.
|
2007-07-20 05:34:02 +04:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/** @file:
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_GRPCOMM_BASE_H
|
|
|
|
#define MCA_GRPCOMM_BASE_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* includes
|
|
|
|
*/
|
|
|
|
#include "orte_config.h"
|
|
|
|
|
|
|
|
#include "opal/class/opal_list.h"
|
|
|
|
#include "opal/mca/mca.h"
|
2010-02-25 04:11:29 +03:00
|
|
|
#include "opal/threads/mutex.h"
|
|
|
|
#include "opal/threads/condition.h"
|
2011-10-20 00:18:14 +04:00
|
|
|
#include "opal/mca/hwloc/hwloc.h"
|
2010-02-25 04:11:29 +03:00
|
|
|
|
|
|
|
#include "orte/mca/odls/odls_types.h"
|
2007-07-20 05:34:02 +04:00
|
|
|
|
|
|
|
#include "orte/mca/grpcomm/grpcomm.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Global functions for MCA overall collective open and close
|
|
|
|
*/
|
2008-02-28 04:57:57 +03:00
|
|
|
BEGIN_C_DECLS
|
2007-07-20 05:34:02 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* function definitions
|
|
|
|
*/
|
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_open(void);
|
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_select(void);
|
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_close(void);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* globals that might be needed
|
|
|
|
*/
|
2010-02-25 04:11:29 +03:00
|
|
|
typedef struct {
|
|
|
|
int output;
|
|
|
|
bool selected;
|
|
|
|
opal_list_t components_available;
|
|
|
|
orte_grpcomm_base_component_t selected_component;
|
2012-04-06 18:23:13 +04:00
|
|
|
orte_grpcomm_coll_id_t coll_id;
|
|
|
|
opal_list_t active_colls;
|
2011-10-20 00:18:14 +04:00
|
|
|
#if OPAL_HAVE_HWLOC
|
|
|
|
hwloc_cpuset_t working_cpuset;
|
|
|
|
#endif
|
2010-02-25 04:11:29 +03:00
|
|
|
} orte_grpcomm_base_t;
|
2007-07-20 05:34:02 +04:00
|
|
|
|
2010-02-25 04:11:29 +03:00
|
|
|
ORTE_DECLSPEC extern orte_grpcomm_base_t orte_grpcomm_base;
|
2007-07-20 05:34:02 +04:00
|
|
|
|
2012-04-06 18:23:13 +04:00
|
|
|
ORTE_DECLSPEC orte_grpcomm_collective_t* orte_grpcomm_base_setup_collective(orte_grpcomm_coll_id_t id);
|
|
|
|
ORTE_DECLSPEC void orte_grpcomm_base_progress_collectives(void);
|
|
|
|
ORTE_DECLSPEC orte_grpcomm_coll_id_t orte_grpcomm_base_get_coll_id(void);
|
|
|
|
ORTE_DECLSPEC void orte_grpcomm_base_pack_collective(opal_buffer_t *relay,
|
2012-09-12 15:31:36 +04:00
|
|
|
orte_jobid_t jobid,
|
2012-04-06 18:23:13 +04:00
|
|
|
orte_grpcomm_collective_t *coll,
|
|
|
|
orte_grpcomm_internal_stage_t stg);
|
2012-06-15 14:15:07 +04:00
|
|
|
ORTE_DECLSPEC void orte_grpcomm_base_rollup_recv(int status, orte_process_name_t* sender,
|
|
|
|
opal_buffer_t* buffer, orte_rml_tag_t tag,
|
|
|
|
void* cbdata);
|
2010-02-25 04:11:29 +03:00
|
|
|
|
2012-04-06 18:23:13 +04:00
|
|
|
/* modex support */
|
|
|
|
ORTE_DECLSPEC void orte_grpcomm_base_store_peer_modex(opal_buffer_t *rbuf, void *cbdata);
|
|
|
|
ORTE_DECLSPEC void orte_grpcomm_base_store_modex(opal_buffer_t *rbuf, void *cbdata);
|
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_modex(orte_grpcomm_collective_t *modex);
|
2011-05-17 07:30:25 +04:00
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_pack_modex_entries(opal_buffer_t *buf);
|
2008-06-19 02:17:53 +04:00
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_update_modex_entries(orte_process_name_t *proc_name,
|
|
|
|
opal_buffer_t *rbuf);
|
2008-12-10 02:49:02 +03:00
|
|
|
|
2012-04-06 18:23:13 +04:00
|
|
|
/* comm support */
|
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_comm_start(void);
|
|
|
|
ORTE_DECLSPEC void orte_grpcomm_base_comm_stop(void);
|
|
|
|
ORTE_DECLSPEC void orte_grpcomm_base_xcast_recv(int status, orte_process_name_t* sender,
|
|
|
|
opal_buffer_t* buffer, orte_rml_tag_t tag,
|
|
|
|
void* cbdata);
|
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_pack_xcast(orte_jobid_t job,
|
|
|
|
opal_buffer_t *buffer,
|
|
|
|
opal_buffer_t *message,
|
|
|
|
orte_rml_tag_t tag);
|
2009-01-24 00:57:51 +03:00
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
END_C_DECLS
|
2007-07-20 05:34:02 +04:00
|
|
|
#endif
|