hwlocality...es_consult(3)

okay so bestie, you've opened hwlocality...es_consult(3) from the Library Functions Manual β€” it's literally the helpers-for-consulting-distance-matrices page. No cap, it's giving β€œsupport crew for distance matrices” energy. πŸ’…βœ¨

🌸 NAME 🌸

hwlocality_distances_consult β€” Helpers for consulting distance matrices. πŸ¦‹

✨ SYNOPSIS ✨

Functions 🧚

int hwloc_distances_obj_index (struct hwloc_distances_s *distances,
    hwloc_obj_t obj)
int hwloc_distances_obj_pair_values (struct hwloc_distances_s
    *distances, hwloc_obj_t obj1, hwloc_obj_t obj2, hwloc_uint64_t
    *value1to2, hwloc_uint64_t *value2to1)

πŸ’… Detailed Description πŸ’…

This is the detailed-description zone for the distance-matrix helpers. The actual function deets are right below in Function Documentation, bestie. 🫢

πŸŽ€ Function Documentation πŸŽ€

hwloc_distances_obj_index πŸ“

int hwloc_distances_obj_index (struct hwloc_distances_s * distances,
    hwloc_obj_t obj) [inline]

Find the index of an object in a distances structure. Iconic little lookup behavior. ✨

Returns:

  • the index of the object in the distances structure if any.
  • -1 if object obj is not involved in structure distances.

hwloc_distances_obj_pair_values πŸ’–

int hwloc_distances_obj_pair_values (struct hwloc_distances_s * distances,
    hwloc_obj_t obj1, hwloc_obj_t obj2, hwloc_uint64_t * value1to2,
    hwloc_uint64_t * value2to1) [inline]

Find the values between two objects in a distance matrix. The distance from obj1 to obj2 is stored in the value pointed by value1to2 and reciprocally. Pointer-pair main character energy, fr fr. 🌈

Returns:

  • 0 on success.
  • -1 if object obj1 or obj2 is not involved in structure distances.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code. πŸ’…


okay signing off from the footer zone: source/version is Hardware Locality (hwloc), Version 2.15.0, and the page tag is hwlocality...es_consult(3). The original footer doesn't give a separate date, so I'm not inventing one β€” periodt. πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from