2004-10-12 04:17:29 +00:00
|
|
|
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
|
|
|
|
2004-07-19 19:45:06 +00:00
|
|
|
/*
|
2004-11-22 01:38:40 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004 The Ohio State University.
|
|
|
|
* All rights reserved.
|
2004-11-28 20:09:25 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-07-19 19:45:06 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*/
|
|
|
|
#ifndef MCA_PTL_GM_PROC_H
|
|
|
|
#define MCA_PTL_GM_PROC_H
|
|
|
|
|
2005-07-03 16:06:07 +00:00
|
|
|
#include "opal/class/opal_object.h"
|
2004-07-19 19:45:06 +00:00
|
|
|
#include "ptl_gm.h"
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2004-07-19 19:45:06 +00:00
|
|
|
|
2005-07-03 16:06:07 +00:00
|
|
|
extern opal_class_t mca_ptl_gm_proc_t_class;
|
2004-07-19 19:45:06 +00:00
|
|
|
|
|
|
|
struct mca_ptl_gm_proc_t {
|
2005-07-03 16:22:16 +00:00
|
|
|
opal_list_item_t super; /**< allow proc to be placed on a list */
|
2005-03-14 20:57:21 +00:00
|
|
|
struct ompi_proc_t *proc_ompi; /**< pointer to corresponding orte_process_name_t */
|
2004-07-19 19:45:06 +00:00
|
|
|
struct mca_ptl_gm_addr_t *proc_addrs; /**< array of addresses published by peer */
|
2005-07-03 22:45:48 +00:00
|
|
|
opal_mutex_t proc_lock; /**< lock to protect against concurrent access to proc state */
|
2004-07-19 19:45:06 +00:00
|
|
|
size_t proc_peer_count;
|
|
|
|
size_t proc_addr_count;
|
|
|
|
struct mca_ptl_gm_peer_t **peer_arr;
|
2005-03-14 20:57:21 +00:00
|
|
|
orte_process_name_t proc_guid;
|
2004-07-19 19:45:06 +00:00
|
|
|
};
|
|
|
|
typedef struct mca_ptl_gm_proc_t mca_ptl_gm_proc_t;
|
|
|
|
|
|
|
|
|
2004-08-02 00:24:22 +00:00
|
|
|
mca_ptl_gm_proc_t *mca_ptl_gm_proc_create (mca_ptl_gm_module_t * ptl,
|
2005-03-14 20:57:21 +00:00
|
|
|
struct ompi_proc_t* orte_proc);
|
2004-07-19 19:45:06 +00:00
|
|
|
mca_ptl_gm_proc_t *mca_ptl_gm_proc_lookup (void *guid, size_t size);
|
|
|
|
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
2004-07-19 19:45:06 +00:00
|
|
|
#endif
|