Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] bug in hwloc 1.1 hwloc_get_membind_nodeset on Linux
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2011-01-18 15:14:59


Le 18/01/2011 19:38, Bernd Kallies a écrit :
> max_os_index = 512, HWLOC_BITS_PER_LONG = 64, rounding gives
> max_os_index = 576.
>
> I also saw the same behaviour on a much smaller machine (usual 2-socket
> Nehalem-EP). CONFIG_NODES_SHIFT is not found in /proc/config.gz.
> max_os_index = 64, HWLOC_BITS_PER_LONG = 64, rounding gives max_os_index
> = 128.
>
> Hope this helps. BK
>

Ok thanks. Your patch is correct because we already guarantee that
max_os_index is a multiple of BITS_PER_LONG. I will add a comment and
debug assert about this. This will go into 1.1.1.

Thanks a lot.

Brice