The hwloc_topology_get_default_nodeset() function that was introduced in hwloc v2.12.0 takes an hwloc_topology_t, which allows it to modify the topology. But to the best of my knowledge, it has no reason to do so, and indeed if I read the implementation code right it currently doesn't. Shouldn't it take an hwloc_const_topology_t instead?