Fix potential issue if opal_hwloc_topology is NULL
cmr=v1.8.2:reviewer=jsquyres This commit was SVN r32050.
Этот коммит содержится в:
родитель
b5a2ceaa7c
Коммит
b618b36a2f
@ -74,7 +74,10 @@ int orte_ess_base_proc_binding(void)
|
||||
"%s Not bound at launch",
|
||||
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME)));
|
||||
/* we were not bound at launch */
|
||||
if (NULL != opal_hwloc_topology) {
|
||||
if (NULL == opal_hwloc_topology) {
|
||||
/* there is nothing we can do, so just return */
|
||||
return ORTE_SUCCESS;
|
||||
}
|
||||
support = (struct hwloc_topology_support*)hwloc_topology_get_support(opal_hwloc_topology);
|
||||
/* get our node object */
|
||||
node = hwloc_get_root_obj(opal_hwloc_topology);
|
||||
@ -245,7 +248,6 @@ int orte_ess_base_proc_binding(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
OPAL_OUTPUT_VERBOSE((5, orte_ess_base_framework.framework_output,
|
||||
"%s Process bound at launch",
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user