File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 9
9
* University of Stuttgart. All rights reserved.
10
10
* Copyright (c) 2004-2005 The Regents of the University of California.
11
11
* All rights reserved.
12
- * Copyright (c) 2010 Sandia National Laboratories. All rights reserved.
12
+ * Copyright (c) 2010-2020 Sandia National Laboratories. All rights reserved.
13
13
* $COPYRIGHT$
14
14
*
15
15
* Additional copyrights may follow
20
20
#ifndef OMPI_MTL_PORTALS_ENDPOINT_H
21
21
#define OMPI_MTL_PORTALS_ENDPOINT_H
22
22
23
+ #include "ompi/mca/pml/pml.h"
23
24
#include "ompi/mca/mtl/portals4/mtl_portals4.h"
24
25
25
26
struct mca_mtl_base_endpoint_t {
@@ -31,7 +32,10 @@ static inline mca_mtl_base_endpoint_t *
31
32
ompi_mtl_portals4_get_endpoint (struct mca_mtl_base_module_t * mtl , ompi_proc_t * ompi_proc )
32
33
{
33
34
if (OPAL_UNLIKELY (NULL == ompi_proc -> proc_endpoints [OMPI_PROC_ENDPOINT_TAG_PORTALS4 ])) {
34
- ompi_mtl_portals4_add_procs (mtl , 1 , & ompi_proc );
35
+ int rc ;
36
+ if (OPAL_UNLIKELY (OMPI_SUCCESS != (rc = MCA_PML_CALL (add_procs (& ompi_proc , 1 ))))) {
37
+ ompi_rte_abort (rc ,"ompi_mtl_portals4_get_endpoint(): pml->add_procs() failed. Aborting.\n" );
38
+ }
35
39
}
36
40
37
41
return ompi_proc -> proc_endpoints [OMPI_PROC_ENDPOINT_TAG_PORTALS4 ];
You can’t perform that action at this time.
0 commit comments