File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 17
17
* Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
18
18
* Copyright (c) 2018 Triad National Security, LLC. All rights
19
19
* reserved.
20
+ * Copyright (c) 2019 Google, LLC. All rights reserved.
20
21
* $COPYRIGHT$
21
22
*
22
23
* Additional copyrights may follow
@@ -129,7 +130,10 @@ static int mca_btl_uct_component_open(void)
129
130
mca_btl_uct_component .num_contexts_per_module = MCA_BTL_UCT_MAX_WORKERS ;
130
131
}
131
132
132
- if (mca_btl_uct_component .disable_ucx_memory_hooks ) {
133
+ if (mca_btl_uct_component .disable_ucx_memory_hooks &&
134
+ ((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT ) ==
135
+ ((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT ) &
136
+ opal_mem_hooks_support_level ()))) {
133
137
ucm_set_external_event (UCM_EVENT_VM_UNMAPPED );
134
138
opal_mem_hooks_register_release (mca_btl_uct_mem_release_cb , NULL );
135
139
}
You can’t perform that action at this time.
0 commit comments