This source file includes following definitions.
- ompi_mtl_psm_get_endpoint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #ifndef MCA_MTL_PSM_ENDPOINT_H
24 #define MCA_MTL_PSM_ENDPOINT_H
25
26 #include "opal/class/opal_list.h"
27 #include "opal/mca/event/event.h"
28 #include "ompi/mca/mtl/mtl.h"
29 #include "mtl_psm.h"
30
31 #include "psm.h"
32
33 BEGIN_C_DECLS
34
35 OBJ_CLASS_DECLARATION(mca_mtl_psm_endpoint_t);
36
37
38
39
40
41
42
43
44 struct mca_mtl_psm_endpoint_t {
45 opal_list_item_t super;
46
47 struct mca_mtl_psm_module_t* mtl_psm_module;
48
49
50 psm_epid_t peer_epid;
51
52
53 psm_epaddr_t peer_addr;
54
55 };
56
57 typedef struct mca_mtl_psm_endpoint_t mca_mtl_psm_endpoint_t;
58 OBJ_CLASS_DECLARATION(mca_mtl_psm_endpoint);
59
60 static inline mca_mtl_psm_endpoint_t *ompi_mtl_psm_get_endpoint (struct mca_mtl_base_module_t* mtl, ompi_proc_t *ompi_proc)
61 {
62 if (OPAL_UNLIKELY(NULL == ompi_proc->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_MTL])) {
63 ompi_mtl_psm_add_procs (mtl, 1, &ompi_proc);
64 }
65
66 return ompi_proc->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_MTL];
67 }
68
69 END_C_DECLS
70 #endif