hwlocality_distances_consult.3 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .TH "hwlocality_distances_consult" 3 "Thu Sep 7 2023" "Version 2.9.3" "Hardware Locality (hwloc)" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. hwlocality_distances_consult \- Helpers for consulting distance matrices
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SS "Functions"
  10. .in +1c
  11. .ti -1c
  12. .RI "static int \fBhwloc_distances_obj_index\fP (struct \fBhwloc_distances_s\fP *distances, \fBhwloc_obj_t\fP obj)"
  13. .br
  14. .ti -1c
  15. .RI "static int \fBhwloc_distances_obj_pair_values\fP (struct \fBhwloc_distances_s\fP *distances, \fBhwloc_obj_t\fP obj1, \fBhwloc_obj_t\fP obj2, hwloc_uint64_t *value1to2, hwloc_uint64_t *value2to1)"
  16. .br
  17. .in -1c
  18. .SH "Detailed Description"
  19. .PP
  20. .SH "Function Documentation"
  21. .PP
  22. .SS "static int hwloc_distances_obj_index (struct \fBhwloc_distances_s\fP * distances, \fBhwloc_obj_t\fP obj)\fC [inline]\fP, \fC [static]\fP"
  23. .PP
  24. Find the index of an object in a distances structure\&.
  25. .PP
  26. \fBReturns\fP
  27. .RS 4
  28. the index of the object in the distances structure if any\&.
  29. .PP
  30. -1 if object \fCobj\fP is not involved in structure \fCdistances\fP\&.
  31. .RE
  32. .PP
  33. .SS "static int hwloc_distances_obj_pair_values (struct \fBhwloc_distances_s\fP * distances, \fBhwloc_obj_t\fP obj1, \fBhwloc_obj_t\fP obj2, hwloc_uint64_t * value1to2, hwloc_uint64_t * value2to1)\fC [inline]\fP, \fC [static]\fP"
  34. .PP
  35. Find the values between two objects in a distance matrices\&. The distance from \fCobj1\fP to \fCobj2\fP is stored in the value pointed by \fCvalue1to2\fP and reciprocally\&.
  36. .PP
  37. \fBReturns\fP
  38. .RS 4
  39. 0 on success\&.
  40. .PP
  41. -1 if object \fCobj1\fP or \fCobj2\fP is not involved in structure \fCdistances\fP\&.
  42. .RE
  43. .PP
  44. .SH "Author"
  45. .PP
  46. Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code\&.