core: propagate total memory at the end of the discovery
We don't need it early, and it may be incomplete if some
objects are added later.
This commit was SVN r5664.
if (hwloc_connect_levels(topology) < 0)
return -1;
- /* accumulate children memory in total_memory fields (only once parent is set) */
- hwloc_debug("%s", "\nPropagate total memory up\n");
- propagate_total_memory(topology->levels[0][0]);
-
/*
* Additional discovery with other backends
*/
return -1;
}
+ /* accumulate children memory in total_memory fields (only once parent is set) */
+ hwloc_debug("%s", "\nPropagate total memory up\n");
+ propagate_total_memory(topology->levels[0][0]);
+
/*
* Now that objects are numbered, take distance matrices from backends and put them in the main topology.
*