Brice Goglin, le Tue 23 Aug 2011 19:22:49 +0200, a écrit :
> root = hwloc_get_root_obj(global);
> sw1 = hwloc_topology_insert_misc_object_by_parent(global, root, "Switch");
> hwloc_topology_insert_topology(global, sw1, local);
> hwloc_topology_insert_topology(global, sw1, local);
> sw2 = hwloc_topology_insert_misc_object_by_parent(global, root, "Switch");
> hwloc_topology_insert_topology(global, sw2, local);
> hwloc_topology_insert_topology(global, sw2, local);
That looks good!
The performance hit should be quite low, I expect a copy to be much less
costly than the actual probe or XML load.
Samuel
|