Ensure opal_hwloc_topology is NULL after being destroyed
This commit was SVN r25138.
Этот коммит содержится в:
родитель
3048ce043d
Коммит
3c4f04f4d9
@ -128,7 +128,7 @@ int orte_ess_base_orted_setup(char **hosts)
|
||||
#if OPAL_HAVE_HWLOC
|
||||
{
|
||||
hwloc_obj_t obj;
|
||||
int i, j;
|
||||
unsigned i, j;
|
||||
|
||||
/* get the local topology */
|
||||
if (NULL == opal_hwloc_topology) {
|
||||
@ -594,6 +594,7 @@ int orte_ess_base_orted_finalize(void)
|
||||
/* destroy the topology, if required */
|
||||
if (NULL != opal_hwloc_topology) {
|
||||
hwloc_topology_destroy(opal_hwloc_topology);
|
||||
opal_hwloc_topology = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -820,6 +820,7 @@ static int rte_finalize(void)
|
||||
/* destroy the topology, if required */
|
||||
if (NULL != opal_hwloc_topology) {
|
||||
hwloc_topology_destroy(opal_hwloc_topology);
|
||||
opal_hwloc_topology = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -159,6 +159,7 @@ void orte_util_nidmap_finalize(void)
|
||||
/* destroy the topology */
|
||||
if (NULL != opal_hwloc_topology) {
|
||||
hwloc_topology_destroy(opal_hwloc_topology);
|
||||
opal_hwloc_topology = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user