1
1

reachable: Initialize / Finalize reachable framework

Initialize the reachable framework during opal_init() and tear
it back down during opal_finalize().  The framework was never
used, so the lack of initialization didn't matter, but this is
a required step in using the framework.

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
Этот коммит содержится в:
Gabe Saba 2017-09-13 18:43:15 +00:00 коммит произвёл Brian Barrett
родитель 6048c543fa
Коммит 8f2df42055
2 изменённых файлов: 18 добавлений и 0 удалений

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

@ -15,6 +15,8 @@
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
* Copyright (c) 2016-2017 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2017 Amazon.com, Inc. or its affiliates.
* All Rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -44,6 +46,7 @@
#include "opal/mca/memchecker/base/base.h"
#include "opal/mca/memcpy/base/base.h"
#include "opal/mca/backtrace/base/base.h"
#include "opal/mca/reachable/base/base.h"
#include "opal/mca/timer/base/base.h"
#include "opal/mca/hwloc/base/base.h"
#include "opal/mca/event/base/base.h"
@ -135,6 +138,8 @@ opal_finalize(void)
(void) mca_base_framework_close(&opal_compress_base_framework);
#endif
(void) mca_base_framework_close(&opal_reachable_base_framework);
(void) mca_base_framework_close(&opal_event_base_framework);
/* close high resolution timers */

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

@ -18,6 +18,8 @@
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
* Copyright (c) 2015-2017 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2017 Amazon.com, Inc. or its affiliates.
* All Rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -49,6 +51,7 @@
#include "opal/mca/patcher/base/base.h"
#include "opal/mca/memcpy/base/base.h"
#include "opal/mca/hwloc/base/base.h"
#include "opal/mca/reachable/base/base.h"
#include "opal/mca/timer/base/base.h"
#include "opal/mca/memchecker/base/base.h"
#include "opal/mca/if/base/base.h"
@ -596,6 +599,16 @@ opal_init(int* pargc, char*** pargv)
goto return_error;
}
/* Load reachable framework */
if (OPAL_SUCCESS != (ret = mca_base_framework_open(&opal_reachable_base_framework, 0))){
error = "opal_reachable_base_framework";
goto return_error;
}
if (OPAL_SUCCESS != (ret = opal_reachable_base_select())) {
error = "opal_reachable_base_select";
goto return_error;
}
#if OPAL_ENABLE_FT_CR == 1
/*
* Initialize the compression framework