Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] [RFC] multinode topology
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2011-08-23 13:29:21


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