This source file includes following definitions.
- ompi_mtl_portals4_get_endpoint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 #ifndef OMPI_MTL_PORTALS_ENDPOINT_H
21 #define OMPI_MTL_PORTALS_ENDPOINT_H
22
23 #include "ompi/mca/mtl/portals4/mtl_portals4.h"
24
25 struct mca_mtl_base_endpoint_t {
26 ptl_process_t ptl_proc;
27 };
28 typedef struct mca_mtl_base_endpoint_t mca_mtl_base_endpoint_t;
29
30 static inline mca_mtl_base_endpoint_t *
31 ompi_mtl_portals4_get_endpoint (struct mca_mtl_base_module_t* mtl, ompi_proc_t *ompi_proc)
32 {
33 if (OPAL_UNLIKELY(NULL == ompi_proc->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_PORTALS4])) {
34 ompi_mtl_portals4_add_procs (mtl, 1, &ompi_proc);
35 }
36
37 return ompi_proc->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_PORTALS4];
38 }
39
40 #endif