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 15:09:10


Le 20/03/2012 19:02, Jeffrey Squyres a écrit :
> On Mar 20, 2012, at 12:02 PM, Brice Goglin wrote:
>
>> Actually, what we don't know is how to map that to port 1/2 (we have
>> ib0/ib1 mac addresses, those are = GUID+1/2 on my machine)
>
> Yes, that is more correctly stated.
>
> A Mellanox guy pointed me to the ibdev2netdev script in current OFED distributions -- it looks like they do actually do the mapping based on the GID.

Looks like we just need to read /sys/class/net/ib*/dev_id, make that
decimal, add one, and we get the port number.

How would you like this to appear in the topology? Is a object info such
as "Port=%d" in each network interface in a OFED object ok?

Brice