hwlocality...tances_add(3)
π hwlocality...tances_add(3) π
Okay bestie, welcome to the Hardware Locality (hwloc) manual page for hwlocality_distances_add β the title is giving truncated, but the vibe is fully here. This whole page is about adding or removing distances between objects. Let's go. π«Ά
β¨ NAME β¨
hwlocality_distances_add β Add or remove distances between objects.
π SYNOPSIS π
Here's the whole cast list, no cap:
π Enumerations π
enum hwloc_distances_add_flag_e { HWLOC_DISTANCES_ADD_FLAG_GROUP,
HWLOC_DISTANCES_ADD_FLAG_GROUP_INACCURATE }
π§ Functions π§
int hwloc_distances_add (hwloc_topology_t topology, unsigned nbobjs,
hwloc_obj_t *objs, hwloc_uint64_t *values, unsigned long kind,
unsigned long flags)
int hwloc_distances_remove (hwloc_topology_t topology)
int hwloc_distances_remove_by_depth (hwloc_topology_t topology, int
depth)
static int hwloc_distances_remove_by_type (hwloc_topology_t topology,
hwloc_obj_type_t type)
int hwloc_distances_release_remove (hwloc_topology_t topology, struct
hwloc_distances_s *distances)
πΈ Detailed Description πΈ
This section is literally just the runway for the docs below. Nothing extra to unpack here, bestie. Scroll on. π¦
π Enumeration Type Documentation π
π
enum hwloc_distances_add_flag_e π
Flags for adding a new distances to a topology. Yes, the original says "a new distances" β we keep the lore exactly. π
π Enumerator π
HWLOC_DISTANCES_ADD_FLAG_GROUPβ Try to group objects based on the newly provided distance information. Slay.HWLOC_DISTANCES_ADD_FLAG_GROUP_INACCURATEβ If grouping, consider the distance values as inaccurate and relax the comparisons during the grouping algorithms. The actual accuracy may be modified through theHWLOC_GROUPING_ACCURACYenvironment variable (see Environment Variables).
π₯ Function Documentation π₯
β int hwloc_distances_add (...) β
int hwloc_distances_add (hwloc_topology_t topology, unsigned nbobjs,
hwloc_obj_t * objs, hwloc_uint64_t * values, unsigned long kind,
unsigned long flags)
Provide a new distance matrix. Provide the matrix of distances between a set of objects given by nbobjs and the objs array. nbobjs must be at least 2. The distances are stored as a one-dimension array in values. The distance from object i to object j is in slot i*nbobjs+j.
kind specifies the kind of distance as a OR'ed set of hwloc_distances_kind_e. Kind HWLOC_DISTANCES_KIND_HETEROGENEOUS_TYPES will be automatically added if objects of different types are given.
flags configures the behavior of the function using an optional OR'ed set of hwloc_distances_add_flag_e.
π« int 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().
π¦ int hwloc_distances_remove (...) π¦
int hwloc_distances_remove (hwloc_topology_t topology)
Remove all distance matrices from a topology. Remove all distance matrices, either provided by the user or gathered through the OS.
Heads up, bestie: if these distances were used to group objects, these additional Group objects are not removed from the topology.
π int 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.
π static int hwloc_distances_remove_by_type (...) π
static int hwloc_distances_remove_by_type (hwloc_topology_t topology,
hwloc_obj_type_t type) [inline], [static]
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.
π Author π
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code. Doxygen really said "I'll handle the docs" and ate. π
xoxo, your hwloc bestie π«Ά β from the Hardware Locality (hwloc) source, Version 2.4.1, dated Thu Feb 11 2021. Periodt. πβ¨
π¦ where this page comes from
- centos-stream 9: hwloc-devel 2.4.1-6.el9 Β· BSD
- centos-stream 9: hwloc-devel 2.4.1-6.el9 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms