1
1
openmpi/ompi/mca/ptl/gm/ptl_gm_peer.h
Brian Barrett 566a050c23 Next step in the project split, mainly source code re-arranging
- move files out of toplevel include/ and etc/, moving it into the
    sub-projects
  - rather than including config headers with <project>/include, 
    have them as <project>
  - require all headers to be included with a project prefix, with
    the exception of the config headers ({opal,orte,ompi}_config.h
    mpi.h, and mpif.h)

This commit was SVN r8985.
2006-02-12 01:33:29 +00:00

73 строки
2.0 KiB
C

/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* 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 The Ohio State University.
* 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_PTL_GM_PEER_H
#define MCA_PTL_GM_PEER_H
#include "opal/class/opal_list.h"
#include "ompi/types.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Structure used to publish GM id information to peers.
*/
struct mca_ptl_gm_addr_t {
#if GM_API_VERSION > 0x200
unsigned int global_id;
#else
char global_id[GM_MAX_HOST_NAME_LEN];
#endif /* GM_API_VERSION > 0x200 */
unsigned int local_id;
unsigned int port_id;
};
typedef struct mca_ptl_gm_addr_t mca_ptl_gm_addr_t;
/**
* An abstraction that represents a connection to a peer process.
*/
struct mca_ptl_gm_peer_t {
opal_list_item_t super;
struct mca_ptl_gm_module_t* peer_ptl;
struct mca_ptl_gm_proc_t* peer_proc;
struct mca_ptl_gm_addr_t peer_addr; /**< address of peer */
int num_credits;
int max_credits;
int resending;
int num_resend;
bool get_started;
};
typedef struct mca_ptl_gm_peer_t mca_ptl_gm_peer_t;
OBJ_CLASS_DECLARATION(mca_ptl_gm_peer_t);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif