.TH "Object Types" 3 "Sun Nov 2 2014" "Version 1.10.0" "Hardware Locality (hwloc)" \" -*- nroff -*- .ad l .nh .SH NAME Object Types \- .SS "Typedefs" .in +1c .ti -1c .RI "typedef enum \fBhwloc_obj_cache_type_e\fP \fBhwloc_obj_cache_type_t\fP" .br .ti -1c .RI "typedef enum .br \fBhwloc_obj_bridge_type_e\fP \fBhwloc_obj_bridge_type_t\fP" .br .ti -1c .RI "typedef enum \fBhwloc_obj_osdev_type_e\fP \fBhwloc_obj_osdev_type_t\fP" .br .in -1c .SS "Enumerations" .in +1c .ti -1c .RI "enum \fBhwloc_obj_type_t\fP { \fBHWLOC_OBJ_SYSTEM\fP, \fBHWLOC_OBJ_MACHINE\fP, \fBHWLOC_OBJ_NODE\fP, \fBHWLOC_OBJ_SOCKET\fP, \fBHWLOC_OBJ_CACHE\fP, \fBHWLOC_OBJ_CORE\fP, \fBHWLOC_OBJ_PU\fP, \fBHWLOC_OBJ_GROUP\fP, \fBHWLOC_OBJ_MISC\fP, \fBHWLOC_OBJ_BRIDGE\fP, \fBHWLOC_OBJ_PCI_DEVICE\fP, \fBHWLOC_OBJ_OS_DEVICE\fP, \fBHWLOC_OBJ_TYPE_MAX\fP }" .br .ti -1c .RI "enum \fBhwloc_obj_cache_type_e\fP { \fBHWLOC_OBJ_CACHE_UNIFIED\fP, \fBHWLOC_OBJ_CACHE_DATA\fP, \fBHWLOC_OBJ_CACHE_INSTRUCTION\fP }" .br .ti -1c .RI "enum \fBhwloc_obj_bridge_type_e\fP { \fBHWLOC_OBJ_BRIDGE_HOST\fP, \fBHWLOC_OBJ_BRIDGE_PCI\fP }" .br .ti -1c .RI "enum \fBhwloc_obj_osdev_type_e\fP { \fBHWLOC_OBJ_OSDEV_BLOCK\fP, \fBHWLOC_OBJ_OSDEV_GPU\fP, \fBHWLOC_OBJ_OSDEV_NETWORK\fP, \fBHWLOC_OBJ_OSDEV_OPENFABRICS\fP, \fBHWLOC_OBJ_OSDEV_DMA\fP, \fBHWLOC_OBJ_OSDEV_COPROC\fP }" .br .ti -1c .RI "enum \fBhwloc_compare_types_e\fP { \fBHWLOC_TYPE_UNORDERED\fP }" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "int \fBhwloc_compare_types\fP (\fBhwloc_obj_type_t\fP type1, \fBhwloc_obj_type_t\fP type2)" .br .in -1c .SH "Detailed Description" .PP .SH "Typedef Documentation" .PP .SS "typedef enum \fBhwloc_obj_bridge_type_e\fP \fBhwloc_obj_bridge_type_t\fP" .PP Type of one side (upstream or downstream) of an I/O bridge\&. .SS "typedef enum \fBhwloc_obj_cache_type_e\fP \fBhwloc_obj_cache_type_t\fP" .PP Cache type\&. .SS "typedef enum \fBhwloc_obj_osdev_type_e\fP \fBhwloc_obj_osdev_type_t\fP" .PP Type of a OS device\&. .SH "Enumeration Type Documentation" .PP .SS "enum \fBhwloc_compare_types_e\fP" .PP \fBEnumerator\fP .in +1c .TP \fB\fIHWLOC_TYPE_UNORDERED \fP\fP Value returned by hwloc_compare_types when types can not be compared\&. .SS "enum \fBhwloc_obj_bridge_type_e\fP" .PP Type of one side (upstream or downstream) of an I/O bridge\&. .PP \fBEnumerator\fP .in +1c .TP \fB\fIHWLOC_OBJ_BRIDGE_HOST \fP\fP Host-side of a bridge, only possible upstream\&. .TP \fB\fIHWLOC_OBJ_BRIDGE_PCI \fP\fP PCI-side of a bridge\&. .SS "enum \fBhwloc_obj_cache_type_e\fP" .PP Cache type\&. .PP \fBEnumerator\fP .in +1c .TP \fB\fIHWLOC_OBJ_CACHE_UNIFIED \fP\fP Unified cache\&. .TP \fB\fIHWLOC_OBJ_CACHE_DATA \fP\fP Data cache\&. .TP \fB\fIHWLOC_OBJ_CACHE_INSTRUCTION \fP\fP Instruction cache\&. Only used when the HWLOC_TOPOLOGY_FLAG_ICACHES topology flag is set\&. .SS "enum \fBhwloc_obj_osdev_type_e\fP" .PP Type of a OS device\&. .PP \fBEnumerator\fP .in +1c .TP \fB\fIHWLOC_OBJ_OSDEV_BLOCK \fP\fP Operating system block device\&. For instance 'sda' on Linux\&. .TP \fB\fIHWLOC_OBJ_OSDEV_GPU \fP\fP Operating system GPU device\&. For instance ':0\&.0' for a GL display, 'card0' for a Linux DRM device\&. .TP \fB\fIHWLOC_OBJ_OSDEV_NETWORK \fP\fP Operating system network device\&. For instance the 'eth0' interface on Linux\&. .TP \fB\fIHWLOC_OBJ_OSDEV_OPENFABRICS \fP\fP Operating system openfabrics device\&. For instance the 'mlx4_0' InfiniBand HCA device on Linux\&. .TP \fB\fIHWLOC_OBJ_OSDEV_DMA \fP\fP Operating system dma engine device\&. For instance the 'dma0chan0' DMA channel on Linux\&. .TP \fB\fIHWLOC_OBJ_OSDEV_COPROC \fP\fP Operating system co-processor device\&. For instance 'mic0' for a Xeon Phi (MIC) on Linux, 'opencl0d0' for a OpenCL device, 'cuda0' for a CUDA device\&. .SS "enum \fBhwloc_obj_type_t\fP" .PP Type of topology object\&. .PP \fBNote:\fP .RS 4 Do not rely on the ordering or completeness of the values as new ones may be defined in the future! If you need to compare types, use \fBhwloc_compare_types()\fP instead\&. .RE .PP .PP \fBEnumerator\fP .in +1c .TP \fB\fIHWLOC_OBJ_SYSTEM \fP\fP Whole system (may be a cluster of machines)\&. The whole system that is accessible to hwloc\&. That may comprise several machines in SSI systems like Kerrighed\&. .TP \fB\fIHWLOC_OBJ_MACHINE \fP\fP Machine\&. The typical root object type\&. A set of processors and memory with cache coherency\&. .TP \fB\fIHWLOC_OBJ_NODE \fP\fP NUMA node\&. A set of processors around memory which the processors can directly access\&. .TP \fB\fIHWLOC_OBJ_SOCKET \fP\fP Socket, physical package, or chip\&. In the physical meaning, i\&.e\&. that you can add or remove physically\&. .TP \fB\fIHWLOC_OBJ_CACHE \fP\fP Cache\&. Can be L1i, L1d, L2, L3, \&.\&.\&. .TP \fB\fIHWLOC_OBJ_CORE \fP\fP Core\&. A computation unit (may be shared by several logical processors)\&. .TP \fB\fIHWLOC_OBJ_PU \fP\fP Processing Unit, or (Logical) Processor\&. An execution unit (may share a core with some other logical processors, e\&.g\&. in the case of an SMT core)\&. Objects of this kind are always reported and can thus be used as fallback when others are not\&. .TP \fB\fIHWLOC_OBJ_GROUP \fP\fP Group objects\&. Objects which do not fit in the above but are detected by hwloc and are useful to take into account for affinity\&. For instance, some operating systems expose their arbitrary processors aggregation this way\&. And hwloc may insert such objects to group NUMA nodes according to their distances\&. These objects are ignored when they do not bring any structure\&. .TP \fB\fIHWLOC_OBJ_MISC \fP\fP Miscellaneous objects\&. Objects without particular meaning, that can e\&.g\&. be added by the application for its own use\&. .TP \fB\fIHWLOC_OBJ_BRIDGE \fP\fP Bridge\&. Any bridge that connects the host or an I/O bus, to another I/O bus\&. Bridge objects have neither CPU sets nor node sets\&. They are not added to the topology unless I/O discovery is enabled with \fBhwloc_topology_set_flags()\fP\&. .TP \fB\fIHWLOC_OBJ_PCI_DEVICE \fP\fP PCI device\&. These objects have neither CPU sets nor node sets\&. They are not added to the topology unless I/O discovery is enabled with \fBhwloc_topology_set_flags()\fP\&. .TP \fB\fIHWLOC_OBJ_OS_DEVICE \fP\fP Operating system device\&. These objects have neither CPU sets nor node sets\&. They are not added to the topology unless I/O discovery is enabled with \fBhwloc_topology_set_flags()\fP\&. .TP \fB\fIHWLOC_OBJ_TYPE_MAX \fP\fP Sentinel value .SH "Function Documentation" .PP .SS "int hwloc_compare_types (\fBhwloc_obj_type_t\fPtype1, \fBhwloc_obj_type_t\fPtype2)" .PP Compare the depth of two object types\&. Types shouldn't be compared as they are, since newer ones may be added in the future\&. This function returns less than, equal to, or greater than zero respectively if \fCtype1\fP objects usually include \fCtype2\fP objects, are the same as \fCtype2\fP objects, or are included in \fCtype2\fP objects\&. If the types can not be compared (because neither is usually contained in the other), HWLOC_TYPE_UNORDERED is returned\&. Object types containing CPUs can always be compared (usually, a system contains machines which contain nodes which contain sockets which contain caches, which contain cores, which contain processors)\&. .PP \fBNote:\fP .RS 4 HWLOC_OBJ_PU will always be the deepest\&. .PP This does not mean that the actual topology will respect that order: e\&.g\&. as of today cores may also contain caches, and sockets may also contain nodes\&. This is thus just to be seen as a fallback comparison method\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code\&.