This source file includes following definitions.
- ompi_mtl_ofi_get_endpoint
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 #ifndef OMPI_MTL_OFI_ENDPOINT_H
  12 #define OMPI_MTL_OFI_ENDPOINT_H
  13 
  14 BEGIN_C_DECLS
  15 
  16 extern int ompi_mtl_ofi_add_procs(struct mca_mtl_base_module_t *mtl,
  17                                   size_t nprocs,
  18                                   struct ompi_proc_t **procs);
  19 
  20 OBJ_CLASS_DECLARATION(mca_mtl_ofi_endpoint_t);
  21 
  22 
  23 
  24 
  25 
  26 
  27 
  28 
  29 struct mca_mtl_ofi_endpoint_t {
  30     opal_list_item_t super;
  31 
  32     
  33     struct mca_mtl_ofi_module_t *mtl_ofi_module;
  34 
  35     
  36     fi_addr_t peer_fiaddr;
  37 };
  38 
  39 typedef struct mca_mtl_ofi_endpoint_t  mca_mtl_ofi_endpoint_t;
  40 
  41 static inline mca_mtl_ofi_endpoint_t *ompi_mtl_ofi_get_endpoint (struct mca_mtl_base_module_t* mtl, ompi_proc_t *ompi_proc)
  42 {
  43     if (OPAL_UNLIKELY(NULL == ompi_proc->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_MTL])) {
  44         if (OPAL_UNLIKELY(OMPI_SUCCESS != ompi_mtl_ofi_add_procs(mtl, 1, &ompi_proc))) {
  45             
  46             opal_output(0, "%s:%d: *** The Open MPI OFI MTL is aborting the MPI job (via exit(3)).\n",
  47                            __FILE__, __LINE__);
  48             fflush(stderr);
  49             exit(1);
  50         }
  51     }
  52 
  53     return ompi_proc->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_MTL];
  54 }
  55 
  56 END_C_DECLS
  57 #endif