1
1
Cannot start the data clearing at the root object level as the root object has a different struct attached to userdata.

This commit was SVN r27357.

The following Trac tickets were found above:
  Ticket 3322 --> https://svn.open-mpi.org/trac/ompi/ticket/3322
Этот коммит содержится в:
Ralph Castain 2012-09-20 23:30:32 +00:00
родитель d95025f53a
Коммит 662bc05aa6

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

@ -909,6 +909,7 @@ static void df_clear(hwloc_topology_t topo,
void opal_hwloc_base_clear_usage(hwloc_topology_t topo)
{
hwloc_obj_t root;
unsigned k;
/* bozo check */
if (NULL == topo) {
@ -918,7 +919,12 @@ void opal_hwloc_base_clear_usage(hwloc_topology_t topo)
}
root = hwloc_get_root_obj(topo);
df_clear(topo, root);
/* must not start at root as the root object has
* a different userdata attached to it
*/
for (k=0; k < root->arity; k++) {
df_clear(topo, root->children[k]);
}
}
/* The current slot_list notation only goes to the core level - i.e., the location