distances: don't attach the matrix to Misc objects
Those have a special depth, it would mess up the distance relative_depth
This fixes tests/hwloc_insert_misc on NUMA platforms.
This commit was SVN r5789.
hwloc_bitmap_free(nodeset);
return;
}
+ /* don't attach to Misc objects */
+ while (root->type == HWLOC_OBJ_MISC)
+ root = root->parent;
/* ideally, root has the exact cpuset and nodeset.
* but ignoring or other things that remove objects may cause the object array to reduce */
assert(hwloc_bitmap_isincluded(cpuset, root->cpuset));