hwlocality_syntheticexport.3 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .TH "hwlocality_syntheticexport" 3 "Thu Sep 7 2023" "Version 2.9.3" "Hardware Locality (hwloc)" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. hwlocality_syntheticexport \- Exporting Topologies to Synthetic
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SS "Enumerations"
  10. .in +1c
  11. .ti -1c
  12. .RI "enum \fBhwloc_topology_export_synthetic_flags_e\fP { \fBHWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_NO_EXTENDED_TYPES\fP, \fBHWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_NO_ATTRS\fP, \fBHWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_V1\fP, \fBHWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_IGNORE_MEMORY\fP }"
  13. .br
  14. .in -1c
  15. .SS "Functions"
  16. .in +1c
  17. .ti -1c
  18. .RI "int \fBhwloc_topology_export_synthetic\fP (\fBhwloc_topology_t\fP topology, char *buffer, size_t buflen, unsigned long flags)"
  19. .br
  20. .in -1c
  21. .SH "Detailed Description"
  22. .PP
  23. .SH "Enumeration Type Documentation"
  24. .PP
  25. .SS "enum \fBhwloc_topology_export_synthetic_flags_e\fP"
  26. .PP
  27. Flags for exporting synthetic topologies\&. Flags to be given as a OR'ed set to \fBhwloc_topology_export_synthetic()\fP\&.
  28. .PP
  29. \fBEnumerator\fP
  30. .in +1c
  31. .TP
  32. \fB\fIHWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_NO_EXTENDED_TYPES \fP\fP
  33. Export extended types such as L2dcache as basic types such as Cache\&. This is required if loading the synthetic description with hwloc < 1\&.9\&.
  34. .TP
  35. \fB\fIHWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_NO_ATTRS \fP\fP
  36. Do not export level attributes\&. Ignore level attributes such as memory/cache sizes or PU indexes\&. This is required if loading the synthetic description with hwloc < 1\&.10\&.
  37. .TP
  38. \fB\fIHWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_V1 \fP\fP
  39. Export the memory hierarchy as expected in hwloc 1\&.x\&. Instead of attaching memory children to levels, export single NUMA node child as normal intermediate levels, when possible\&. This is required if loading the synthetic description with hwloc 1\&.x\&. However this may fail if some objects have multiple local NUMA nodes\&.
  40. .TP
  41. \fB\fIHWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_IGNORE_MEMORY \fP\fP
  42. Do not export memory information\&. Only export the actual hierarchy of normal CPU-side objects and ignore where memory is attached\&. This is useful for when the hierarchy of CPUs is what really matters, but it behaves as if there was a single machine-wide NUMA node\&.
  43. .SH "Function Documentation"
  44. .PP
  45. .SS "int hwloc_topology_export_synthetic (\fBhwloc_topology_t\fP topology, char * buffer, size_t buflen, unsigned long flags)"
  46. .PP
  47. Export the topology as a synthetic string\&. At most \fCbuflen\fP characters will be written in \fCbuffer\fP, including the terminating \\0\&.
  48. .PP
  49. This exported string may be given back to \fBhwloc_topology_set_synthetic()\fP\&.
  50. .PP
  51. \fCflags\fP is a OR'ed set of \fBhwloc_topology_export_synthetic_flags_e\fP\&.
  52. .PP
  53. \fBReturns\fP
  54. .RS 4
  55. The number of characters that were written, not including the terminating \\0\&.
  56. .PP
  57. -1 if the topology could not be exported, for instance if it is not symmetric\&.
  58. .RE
  59. .PP
  60. \fBNote\fP
  61. .RS 4
  62. I/O and Misc children are ignored, the synthetic string only describes normal children\&.
  63. .PP
  64. A 1024-byte buffer should be large enough for exporting topologies in the vast majority of cases\&.
  65. .RE
  66. .PP
  67. .SH "Author"
  68. .PP
  69. Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code\&.