Hello I can fix the documentation to say that the function always suceeds and returns the virtual depth for NUMA/IO/Misc.
I don't understand your third sentence. If by "actual depth", you mean the depth of a (normal) parent where NUMA are attached (for instance the depth of Package if NUMAs are attached to Packages), see hwloc_get_memory_parents_depth(). However, you may have NUMA/IO/Misc attached to parents at different depths, so it doesn't make much sense in the general case. What do you use this function for? I thought of removing it from 2.0 because it's hard to define a "usual" order for object types (for instance L3 can be above or below NUMA for different modern platforms). Brice Le 14/03/2018 à 20:24, Madhu, Kavitha Tiptur a écrit : > Hello folks, > > The function hwloc_get_type_or_above_depth() is supposed to return the depth > of objects of type “type" or above. It internally calls hwloc_get_type_depth > which returns virtual depths to NUMA, IO and misc objects. In order to > retrieve the actual depth of these objects, one needs to call > hwloc_get_obj_depth() with virtual depth. Can the documentation be updated to > cover this? Or are there plans of changing this behavior? > > Thanks > Kavitha > _______________________________________________ > hwloc-users mailing list > hwloc-users@lists.open-mpi.org > https://lists.open-mpi.org/mailman/listinfo/hwloc-users _______________________________________________ hwloc-users mailing list hwloc-users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/hwloc-users