Le 13/12/2011 18:02, Samuel Thibault a écrit :
> Brice Goglin, le Tue 13 Dec 2011 16:41:08 +0100, a écrit :
>> Le 13/12/2011 16:22, Jeff Squyres a écrit :
>>> I can't speak for GPUs, but I think the PCI information will be useful to know what devices are close to what PUs / NUMA nodes. That information can be used to make decisions about binding, for example (i.e., you want to be "close" to the specific PCI resources that you'll be using).
>> In most cases, you don't need PCI support for this, you juste manipulate
>> a cuda device, an ibv_device, a MX endpoint, ... and use one of the
>> inline helpers to get the corresponding locality (a cpuset).
> A problem I see there is that although you can write such helper for
> Linux, nothing guarantees that it'll be so easy for other OSes.
And ? :)
We already have many features that are only supported on Linux. OS
devices for instance. libpci isn't portable to all OS we support, ...
As long as we don't add something obviously not portable, I am fine. And
we still have hwloc/linux.h for other cases.