1
1

Merge pull request #6696 from gpaulsen/topic/v4.0.x/btl_uct_from_6668

btl/uct: check for support before disabling UCX memory hooks
Этот коммит содержится в:
Howard Pritchard 2019-06-03 12:15:40 -07:00 коммит произвёл GitHub
родитель 3fd5c84a80 11cb0f24a5
Коммит 76f01b9b8e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -17,6 +17,7 @@
* Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
* Copyright (c) 2018 Triad National Security, LLC. All rights
* reserved.
* Copyright (c) 2019 Google, LLC. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -127,7 +128,10 @@ static int mca_btl_uct_component_open(void)
mca_btl_uct_component.num_contexts_per_module = MCA_BTL_UCT_MAX_WORKERS;
}
if (mca_btl_uct_component.disable_ucx_memory_hooks) {
if (mca_btl_uct_component.disable_ucx_memory_hooks &&
((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT) ==
((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT) &
opal_mem_hooks_support_level()))) {
ucm_set_external_event(UCM_EVENT_VM_UNMAPPED);
opal_mem_hooks_register_release(mca_btl_uct_mem_release_cb, NULL);
}