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.
|
|
|
|
* $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"
|
2008-03-24 23:50:31 +03:00
|
|
|
#include "opal/threads/mutex.h"
|
|
|
|
#include "opal/threads/condition.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
|
|
|
|
*/
|
|
|
|
|
|
|
|
ORTE_DECLSPEC extern int orte_grpcomm_base_output;
|
|
|
|
ORTE_DECLSPEC extern bool mca_grpcomm_base_selected;
|
|
|
|
ORTE_DECLSPEC extern opal_list_t mca_grpcomm_base_components_available;
|
|
|
|
ORTE_DECLSPEC extern orte_grpcomm_base_component_t mca_grpcomm_base_selected_component;
|
2009-01-27 22:13:56 +03:00
|
|
|
ORTE_DECLSPEC extern int orte_grpcomm_profile_fd;
|
2007-07-20 05:34:02 +04:00
|
|
|
|
2008-06-19 02:17:53 +04:00
|
|
|
#if !ORTE_DISABLE_FULL_SUPPORT
|
2008-03-24 23:50:31 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Base functions
|
|
|
|
*/
|
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_allgather_list(opal_list_t *names,
|
|
|
|
opal_buffer_t *sbuf,
|
|
|
|
opal_buffer_t *rbuf);
|
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_set_proc_attr(const char *attr_name,
|
|
|
|
const void *data,
|
|
|
|
size_t size);
|
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_get_proc_attr(const orte_process_name_t proc,
|
|
|
|
const char * attribute_name, void **val,
|
|
|
|
size_t *size);
|
2009-02-06 18:25:06 +03:00
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_peer_modex(bool modex_db);
|
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_full_modex(opal_list_t *procs, bool modex_db);
|
2008-03-24 23:50:31 +03:00
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_purge_proc_attrs(void);
|
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_modex_init(void);
|
|
|
|
ORTE_DECLSPEC void orte_grpcomm_base_modex_finalize(void);
|
2008-06-19 02:17:53 +04:00
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_pack_modex_entries(opal_buffer_t *buf, bool *modex_reqd);
|
|
|
|
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
|
|
|
ORTE_DECLSPEC int orte_grpcomm_base_load_modex_data(orte_process_name_t *proc, char *attribute_name,
|
|
|
|
void *data, int num_bytes);
|
|
|
|
|
2009-01-24 00:57:51 +03:00
|
|
|
/* Tuned collectives */
|
|
|
|
ORTE_DECLSPEC void orte_grpcomm_base_coll_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_allgather(opal_buffer_t *sendbuf, opal_buffer_t *recvbuf, int32_t num_entries,
|
2009-02-20 00:35:20 +03:00
|
|
|
orte_jobid_t jobid, orte_vpid_t np, orte_vpid_t *vpids);
|
2009-01-24 00:57:51 +03:00
|
|
|
|
|
|
|
|
2008-06-19 02:17:53 +04:00
|
|
|
#endif /* ORTE_DISABLE_FULL_SUPPORT */
|
2007-07-20 05:34:02 +04:00
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
END_C_DECLS
|
2007-07-20 05:34:02 +04:00
|
|
|
#endif
|