Can you check the new "distrib-reverse" branch in hwloc GIT?
It should implement what you want. I am deprecating hwloc_distribute()
and distributev() in favor a new hwloc_distrib() that adds a flag
argument. We have a flag to force reverse distribution as discussed earlier.
The hwloc-distrib command-line tool gets a new --reverse option that
enables the above and singlifies using the last bit (didn't actually
need a new function to do this).