NICs do not appear in the topology yet. This is under development in the
libpci branch. You can take a look at
and tell us what you think of the interface. If you're talking about
infiniband NICs, hwloc/openfabrics-verbs.h might help you in the meantime.
By the way, what do you mean by "distance" ? There is also some work
about exposing NUMA distances (and more) in the API, see
Le 27/12/2010 02:32, S.A.Saktheesh a écrit :
> Hi all,
> I am trying to identify NIC in a topology with the help of HWLOC.
> Is NIC considered as a object in the topology.I am able to find other
> objects in the mailing list such as CORE,PU,CACHE etc.
> I am trying to find this because I am interested in finding distance
> between a Socket and a NIC in a given topology.
> With kind regards,
> hwloc-users mailing list