Re: [hwloc-devel] Query on the output of hwloc API

2016-09-26 Thread Swati Agrawal
Sure!. Great thanks Brice. On Mon, Sep 26, 2016 at 10:58 PM, Brice Goglin wrote: > To be future-proof (so that your code works both with current hwloc 1.x > and upcoming 2.0), the best check for non-NUMA machines is >hwloc_get_nbobjs_by_type(topology, HWLOC_OBJ_NODE) <= 1 > > Otherwise, yes

Re: [hwloc-devel] Query on the output of hwloc API

2016-09-26 Thread Brice Goglin
To be future-proof (so that your code works both with current hwloc 1.x and upcoming 2.0), the best check for non-NUMA machines is hwloc_get_nbobjs_by_type(topology, HWLOC_OBJ_NODE) <= 1 Otherwise, yes. Infinite/full nodeset means no NUMA. To actually check whether a nodeset is infinite, use hw

Re: [hwloc-devel] Query on the output of hwloc API

2016-09-26 Thread Swati Agrawal
Thanks Brice for the detailed info. So, can I say that if obj->nodeset is all 1s, it is a no NUMA mode setup? Thanks, Swati On Monday, September 26, 2016, Brice Goglin wrote: > Hello > > If there's no NUMA node object in your hwloc topology, it means your > machine isn't NUMA (there's a single

Re: [hwloc-devel] Query on the output of hwloc API

2016-09-26 Thread Brice Goglin
Hello If there's no NUMA node object in your hwloc topology, it means your machine isn't NUMA (there's a single NUMA node), or your system doesn't report NUMA information at all (missing NUMA support in the kernel, etc). This is an old design choice that is not convenient. So we'll change that in

[hwloc-devel] Query on the output of hwloc API

2016-09-26 Thread Swati Agrawal
Hi All, I have recently started using hwloc and stuck with a case where there are no NUMA nodes. I see that when i run "lscpu" command, it shows me there is 1 Numa Node and all the PUs are in this node. But when i try reading the nodeset for my object using hwloc_get_non_io_ancestor_obj(..), I see