File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 4
4
* reserved.
5
5
* Copyright (c) 2019 Triad National Security, LLC. All rights
6
6
* reserved.
7
+ * Copyright (c) 2018-2020 Amazon.com, Inc. or its affiliates. All rights
8
+ * reserved.
7
9
*
8
- * Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
9
10
* $COPYRIGHT$
10
11
*
11
12
* Additional copyrights may follow
@@ -50,6 +51,10 @@ BEGIN_C_DECLS
50
51
extern mca_mtl_ofi_module_t ompi_mtl_ofi ;
51
52
extern mca_base_framework_t ompi_mtl_base_framework ;
52
53
54
+ extern int ompi_mtl_ofi_add_procs (struct mca_mtl_base_module_t * mtl ,
55
+ size_t nprocs ,
56
+ struct ompi_proc_t * * procs );
57
+
53
58
extern int ompi_mtl_ofi_del_procs (struct mca_mtl_base_module_t * mtl ,
54
59
size_t nprocs ,
55
60
struct ompi_proc_t * * procs );
Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved
3
+ * Copyright (c) 2020 Amazon.com, Inc. or its affiliates. All Rights
4
+ * reserved.
3
5
*
4
6
* $COPYRIGHT$
5
7
*
11
13
#ifndef OMPI_MTL_OFI_ENDPOINT_H
12
14
#define OMPI_MTL_OFI_ENDPOINT_H
13
15
14
- BEGIN_C_DECLS
16
+ #include "ompi/mca/pml/pml.h"
15
17
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 );
18
+ BEGIN_C_DECLS
19
19
20
20
OBJ_CLASS_DECLARATION (mca_mtl_ofi_endpoint_t );
21
21
@@ -38,10 +38,12 @@ struct mca_mtl_ofi_endpoint_t {
38
38
39
39
typedef struct mca_mtl_ofi_endpoint_t mca_mtl_ofi_endpoint_t ;
40
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 )
41
+ static inline mca_mtl_ofi_endpoint_t *
42
+ ompi_mtl_ofi_get_endpoint (struct mca_mtl_base_module_t * mtl ,
43
+ ompi_proc_t * ompi_proc )
42
44
{
43
45
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 ))) {
46
+ if (OPAL_UNLIKELY (OMPI_SUCCESS != MCA_PML_CALL ( add_procs ( & ompi_proc , 1 ) ))) {
45
47
/* Fatal error. exit() out */
46
48
opal_output (0 , "%s:%d: *** The Open MPI OFI MTL is aborting the MPI job (via exit(3)).\n" ,
47
49
__FILE__ , __LINE__ );
You can’t perform that action at this time.
0 commit comments