Hello Guy,

I don't think OS devices ever had a cpuset. All objects that are not
things where you can bind processes usually have NULL cpusets. So when
you have a PCI or OS device, you walk up the obj->parent pointer until
you find an object with a non-NULL cpuset. That's the affinity you're
looking for.

You can use hwloc_get_non_io_ancestor_obj() (in hwloc/helper.h) to find
the first parent with non-NULL cpuset.

Brice



Le 06/11/2012 22:45, Guy Streeter a écrit :
> I noticed on my system (Fedora 17) that the OS Devices don't have their own
> cpuset. It seems like it would be good to know the affinity of the interrupt
> assigned to the device. Is there a provision for this in hwloc, or would I
> need to find it another way?
> thanks,
> --Guy
> _______________________________________________
> hwloc-devel mailing list
> hwloc-de...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-devel

Reply via email to