83 строки
2.0 KiB
C
83 строки
2.0 KiB
C
![]() |
/* -*- C -*-
|
||
|
*
|
||
|
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
|
||
|
* University Research and Technology
|
||
|
* Corporation. All rights reserved.
|
||
|
* Copyright (c) 2004-2006 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$
|
||
|
*
|
||
|
*/
|
||
|
#ifndef GRPCOMM_BASIC_H
|
||
|
#define GRPCOMM_BASIC_H
|
||
|
|
||
|
#include "orte_config.h"
|
||
|
#include "orte/orte_types.h"
|
||
|
#include "orte/orte_constants.h"
|
||
|
|
||
|
#include "opal/threads/mutex.h"
|
||
|
#include "opal/threads/condition.h"
|
||
|
#include "opal/class/opal_object.h"
|
||
|
|
||
|
#include "orte/mca/grpcomm/grpcomm.h"
|
||
|
|
||
|
#if defined(c_plusplus) || defined(__cplusplus)
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/*
|
||
|
* globals
|
||
|
*/
|
||
|
/*
|
||
|
* globals needed within component
|
||
|
*/
|
||
|
typedef struct {
|
||
|
int output;
|
||
|
int xcast_linear_xover;
|
||
|
int xcast_binomial_xover;
|
||
|
orte_std_cntr_t num_active;
|
||
|
opal_mutex_t mutex;
|
||
|
opal_condition_t cond;
|
||
|
} orte_grpcomm_basic_globals_t;
|
||
|
|
||
|
extern orte_grpcomm_basic_globals_t orte_grpcomm_basic;
|
||
|
|
||
|
/*
|
||
|
* Module open / close
|
||
|
*/
|
||
|
int orte_grpcomm_basic_open(void);
|
||
|
int orte_grpcomm_basic_close(void);
|
||
|
orte_grpcomm_base_module_t* orte_grpcomm_basic_init(int *priority);
|
||
|
|
||
|
|
||
|
/*
|
||
|
* Startup / Shutdown
|
||
|
*/
|
||
|
int orte_grpcomm_basic_module_init(void);
|
||
|
int orte_grpcomm_basic_finalize(void);
|
||
|
|
||
|
/*
|
||
|
* xcast interfaces
|
||
|
*/
|
||
|
|
||
|
void orte_ns_replica_recv(int status, orte_process_name_t* sender,
|
||
|
orte_buffer_t* buffer, orte_rml_tag_t tag, void* cbdata);
|
||
|
|
||
|
|
||
|
ORTE_MODULE_DECLSPEC extern orte_grpcomm_base_component_t orte_grpcomm_basic_component;
|
||
|
extern orte_grpcomm_base_module_t orte_grpcomm_basic_module;
|
||
|
|
||
|
#if defined(c_plusplus) || defined(__cplusplus)
|
||
|
}
|
||
|
#endif
|
||
|
#endif
|