Open MPI logo

Hardware Locality Users' Mailing List Archives

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

Subject: Re: [hwloc-users] Numa availability
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2011-08-28 07:54:01


Brice Goglin, le Sun 28 Aug 2011 12:36:31 +0200, a écrit :
> > Is there a hwloc routine to check this?
>
> get_nbobjs_by_type(topology, HWLOC_OBJ_NODE) tells how many NUMA node
> objects exist.
> If you get >1, the machine is NUMA.
> If the non-NUMA case, I think you can get 0 or 1 depending on whether
> the OS is NUMA-aware or not (not sure we should remove this possible
> difference).

The useful difference is that 0 means we don't know, while 1 means we do
know there is only one node.

Samuel