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