HWLOC_DISTANCES_REMOVE(3)

πŸ’– NAME πŸ’–

hwlocality...nces_remove(3) β€” from the Library Functions Manual, and it's literally the Remove distances between objects page, bestie ✨ The function name is hwlocality_distances_remove, and yes, this is your go-to for clearing out distance matrices πŸ’…

✨ SYNOPSIS ✨

🫢 Functions 🫢

int hwloc_distances_remove (hwloc_topology_t topology)
int hwloc_distances_remove_by_depth (hwloc_topology_t topology, int
    depth)
int hwloc_distances_remove_by_type (hwloc_topology_t topology,
    hwloc_obj_type_t type) [inline]
int hwloc_distances_release_remove (hwloc_topology_t topology, struct
    hwloc_distances_s *distances)

πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

No extra lore here β€” the actual function-by-function tea is served right below πŸ‘‡

πŸŽ€ FUNCTION DOCUMENTATION πŸŽ€

πŸ’œ hwloc_distances_release_remove πŸ’œ

int hwloc_distances_release_remove (hwloc_topology_t topology, struct
    hwloc_distances_s * distances)

Release and remove the given distance matrice from the topology. This function includes a call to hwloc_distances_release() β€” no cap, that release is built right in 🫢

Returns: 0 on success, -1 on error.


🌸 hwloc_distances_remove 🌸

int hwloc_distances_remove (hwloc_topology_t topology)

Remove all distance matrices from a topology. It clears all the distance matrices, whether they were provided by the user or gathered through the OS β€” all of them, periodt πŸ’…

If these distances were used to group objects, these additional Group objects are not removed from the topology. So yeah, the Group objects stay β€” important caveat, don't forget it πŸ‘‘

Returns: 0 on success, -1 on error.


πŸ¦‹ hwloc_distances_remove_by_depth πŸ¦‹

int hwloc_distances_remove_by_depth (hwloc_topology_t topology, int depth)

Remove distance matrices for objects at a specific depth in the topology. Identical to hwloc_distances_remove() but only applies to one level of the topology β€” so it's the targeted version, not the whole sweep 🎯

Returns: 0 on success, -1 on error.


🧚 hwloc_distances_remove_by_type 🧚

int hwloc_distances_remove_by_type (hwloc_topology_t topology,
    hwloc_obj_type_t type) [inline]

Remove distance matrices for objects of a specific type in the topology. Identical to hwloc_distances_remove() but only applies to one level of the topology β€” type-based removal, slay ✨

Returns: 0 on success, -1 on error.

πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.

🏁 And that's the whole page, bestie! Footer check: Hardware Locality (hwloc) Β· Version 2.15.0 Β· hwlocality...nces_remove(3) β€” mwah πŸ’‹
πŸ“¦ where this page comes from