Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] PCI device name question
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2012-03-20 10:46:55


Le 20/03/2012 15:33, Jeffrey Squyres a écrit :
> On a machine I have, I'm getting output like this with hwloc trunk:
>
> PCIBridge
> PCI 15b3:6750
> Net L#11 "eth0"
> Net L#12 "eth1"
> OpenFabrics L#13 "mlx4_0"
>
> which is all well and good (mlx4_0 is a RoCE card).
>
> Is there a way in the hwloc topology data to tell which port eth0 and eth1 correspond to?

You should have a "Address" info attribute in each eth object containing
something like 80:34:00:48:fe:80:00:00:00:00:00:01:00:02:c9:03:00:0b:53:49
Is this useful?

Otherwise, I don't see any way to link IB ports with net interfaces in
sysfs:
* My /sys/class/infiniband/mlx4_0 contains a "ports" directory with "1"
and "2" in there, but I can't find anything related to my "ib0" and
"ib1" interface in there.
* /sys/class/net/ib0 doesn't seem to contain anything about IB ports either.

Brice