OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

btl_ofud_proc.h
1 /*
2 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
3 * University Research and Technology
4 * Corporation. All rights reserved.
5 * Copyright (c) 2004-2011 The University of Tennessee and The University
6 * of Tennessee Research Foundation. All rights
7 * reserved.
8 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9 * University of Stuttgart. All rights reserved.
10 * Copyright (c) 2004-2005 The Regents of the University of California.
11 * All rights reserved.
12 * Copyright (c) 2006 Sandia National Laboratories. All rights
13 * reserved.
14 * $COPYRIGHT$
15 *
16 * Additional copyrights may follow
17 *
18 * $HEADER$
19 */
20
21 #ifndef MCA_BTL_UD_PROC_H
22 #define MCA_BTL_UD_PROC_H
23
24 #include "opal/class/opal_object.h"
25 #include "ompi/proc/proc.h"
26
27 #include "btl_ofud.h"
28 #include "btl_ofud_endpoint.h"
29
30 BEGIN_C_DECLS
31
32 /**
33 * Represents the state of a remote process and the set of addresses
34 * that it exports. Also cache an instance of mca_btl_base_endpoint_t for
35 * each BTL instance that attempts to open a connection to the process.
36 */
37
38 struct mca_btl_ud_proc_t {
39 opal_list_item_t super;
40 /**< allow proc to be placed on a list */
41
42 ompi_proc_t *proc_ompi;
43 /**< pointer to corresponding ompi_proc_t */
44
45 struct mca_btl_ud_addr_t* proc_addrs;
46 size_t proc_addr_count;
47 /**< number of addresses published by endpoint */
48
49 struct mca_btl_base_endpoint_t **proc_endpoints;
50 /**< array of endpoints that have been created to access this proc */
51
52 size_t proc_endpoint_count;
53 /**< number of endpoints */
54
55 opal_mutex_t proc_lock;
56 /**< lock to protect against concurrent access to proc state */
57 };
58 typedef struct mca_btl_ud_proc_t mca_btl_ud_proc_t;
59 OBJ_CLASS_DECLARATION(mca_btl_ud_proc_t);
60
61
62 mca_btl_ud_proc_t* mca_btl_ud_proc_lookup_ompi(ompi_proc_t* ompi_proc);
63
64 mca_btl_ud_proc_t* mca_btl_ud_proc_create(ompi_proc_t* ompi_proc);
65
66 int mca_btl_ud_proc_insert(mca_btl_ud_proc_t*, mca_btl_base_endpoint_t*);
67
68 int mca_btl_ud_proc_remove(mca_btl_ud_proc_t*, mca_btl_base_endpoint_t*);
69
70 END_C_DECLS
71 #endif
mca_btl_ud_proc_t
Represents the state of a remote process and the set of addresses that it exports.
Definition: btl_ofud_proc.h:38
btl_ofud.h
mca_btl_ud_proc_t::proc_endpoint_count
size_t proc_endpoint_count
number of endpoints
Definition: btl_ofud_proc.h:52
mca_btl_ud_addr_t
Definition: btl_ofud_endpoint.h:34
mca_btl_ud_proc_t::proc_lock
opal_mutex_t proc_lock
lock to protect against concurrent access to proc state
Definition: btl_ofud_proc.h:55
opal_mutex_t
Definition: mutex_unix.h:53
proc.h
Process identification structure interface.
ompi_proc_t
Remote Open MPI process structure.
Definition: proc.h:56
opal_list_item_t
Definition: opal_list.h:98
mca_btl_ud_proc_t::super
opal_list_item_t super
allow proc to be placed on a list
Definition: btl_ofud_proc.h:39
mca_btl_ud_proc_t::proc_ompi
ompi_proc_t * proc_ompi
pointer to corresponding ompi_proc_t
Definition: btl_ofud_proc.h:42
mca_btl_ud_proc_t::proc_addr_count
size_t proc_addr_count
number of addresses published by endpoint
Definition: btl_ofud_proc.h:46
mca_btl_base_endpoint_t
State of ELAN endpoint connection.
Definition: btl_elan_endpoint.h:33
mca_btl_ud_proc_t::proc_endpoints
struct mca_btl_base_endpoint_t ** proc_endpoints
array of endpoints that have been created to access this proc
Definition: btl_ofud_proc.h:49
opal_object.h
A simple C-language object-oriented system with single inheritance and ownership-based memory managem...
OBJ_CLASS_DECLARATION
#define OBJ_CLASS_DECLARATION(NAME)
Declaration for class descriptor.
Definition: opal_object.h:236