File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 17
17
#include "mpi.h"
18
18
#include "ompi/mca/mca.h"
19
19
#include "opal/memoryhooks/memory.h"
20
+ #include "opal/mca/memory/base/base.h"
20
21
#include "ompi/mca/coll/coll.h"
21
22
#include "ompi/request/request.h"
22
23
#include "ompi/mca/pml/pml.h"
Original file line number Diff line number Diff line change @@ -217,6 +217,8 @@ static int hcoll_open(void)
217
217
218
218
cm -> libhcoll_initialized = false;
219
219
220
+ (void )mca_base_framework_open (& opal_memory_base_framework , 0 );
221
+
220
222
/* Register memory hooks */
221
223
if ((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT ) ==
222
224
((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT ) &
@@ -259,5 +261,8 @@ static int hcoll_close(void)
259
261
HCOL_VERBOSE (1 ,"Hcol library finalize failed" );
260
262
return OMPI_ERROR ;
261
263
}
264
+
265
+ mca_base_framework_close (& opal_memory_base_framework );
266
+
262
267
return OMPI_SUCCESS ;
263
268
}
Original file line number Diff line number Diff line change 17
17
#include "opal/util/show_help.h"
18
18
#include "ompi/proc/proc.h"
19
19
#include "opal/memoryhooks/memory.h"
20
+ #include "opal/mca/memory/base/base.h"
20
21
#include "ompi/runtime/mpiruntime.h"
21
22
22
23
#include "mtl_mxm.h"
@@ -201,6 +202,7 @@ static int ompi_mtl_mxm_component_open(void)
201
202
}
202
203
203
204
#if MXM_API >= MXM_VERSION (2 ,0 )
205
+ (void )mca_base_framework_open (& opal_memory_base_framework , 0 );
204
206
/* Register memory hooks */
205
207
if ((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT ) ==
206
208
((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT ) &
@@ -284,6 +286,7 @@ static int ompi_mtl_mxm_component_close(void)
284
286
#if MXM_API >= MXM_VERSION (2 ,0 )
285
287
mxm_config_free_ep_opts (ompi_mtl_mxm .mxm_ep_opts );
286
288
mxm_config_free_context_opts (ompi_mtl_mxm .mxm_ctx_opts );
289
+ mca_base_framework_close (& opal_memory_base_framework );
287
290
#else
288
291
mxm_config_free (ompi_mtl_mxm .mxm_ep_opts );
289
292
mxm_config_free (ompi_mtl_mxm .mxm_ctx_opts );
Original file line number Diff line number Diff line change 18
18
19
19
#include "opal/runtime/opal.h"
20
20
#include "opal/memoryhooks/memory.h"
21
+ #include "opal/mca/memory/base/base.h"
21
22
#include "opal/mca/pmix/pmix.h"
22
23
#include "ompi/mca/pml/base/pml_base_bsend.h"
23
24
#include "ompi/message/message.h"
@@ -109,6 +110,8 @@ int mca_pml_yalla_open(void)
109
110
110
111
PML_YALLA_VERBOSE (1 , "%s" , "mca_pml_yalla_open" );
111
112
113
+ (void )mca_base_framework_open (& opal_memory_base_framework , 0 );
114
+
112
115
/* Set memory hooks */
113
116
if ((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT ) ==
114
117
((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT ) &
@@ -153,6 +156,7 @@ int mca_pml_yalla_close(void)
153
156
mxm_cleanup (ompi_pml_yalla .mxm_context );
154
157
ompi_pml_yalla .mxm_context = NULL ;
155
158
}
159
+ mca_base_framework_close (& opal_memory_base_framework );
156
160
return 0 ;
157
161
}
158
162
You can’t perform that action at this time.
0 commit comments