hwlocality_rsmi(3)
π hwlocality_rsmi(3) π
okay bestie, welcome to the Library Functions Manual page for hwlocality_rsmi(3) β this is the one about playing nice with the ROCm SMI Management Library. it's giving interoperability, lowkey iconic, and we're gonna read it together. π«Ά
π NAME π
hwlocality_rsmi β Interoperability with the ROCm SMI Management Library β¨
πΈ SYNOPSIS πΈ
π Functions π
int hwloc_rsmi_get_device_cpuset (hwloc_topology_t topology, uint32_t dv_ind, hwloc_cpuset_t set)
hwloc_obj_t hwloc_rsmi_get_device_osdev_by_index (hwloc_topology_t topology, uint32_t dv_ind)
hwloc_obj_t hwloc_rsmi_get_device_osdev (hwloc_topology_t topology, uint32_t dv_ind)
π¦ Detailed Description π¦
This interface is literally a whole set of ways to retrieve topology information about devices managed by the ROCm SMI Management Library. That's the vibe. π
π₯ Function Documentation π₯
π§ int hwloc_rsmi_get_device_cpuset (hwloc_topology_t topology, uint32_t dv_ind, hwloc_cpuset_t set) [inline] π§
okay so this one gets the CPU set of logical processors that are physically close to the AMD GPU device whose index is dv_ind. It stores in set the CPU-set describing the locality of the AMD GPU device whose index is dv_ind. π
topology and the device dv_ind must match the local machine, periodt. I/O devices detection and the ROCm SMI component are not needed in the topology. π
The function only returns the locality of the device. If you need more information about the device, bestie, OS objects should be used instead β see hwloc_rsmi_get_device_osdev() and hwloc_rsmi_get_device_osdev_by_index(). π¦
This function is currently only implemented in a meaningful way for Linux; other systems will simply get the cpuset of the entire topology. No cap.
π Returns π
0on success. β-1on error, for instance if device information could not be found. π
π§ hwloc_obj_t hwloc_rsmi_get_device_osdev (hwloc_topology_t topology, uint32_t dv_ind) [inline] π§
This one gets the hwloc OS device object corresponding to the AMD GPU device, whose index is dv_ind. β¨
π«Ά Returns π«Ά
- The hwloc OS device object that describes the given AMD GPU, whose index is
dv_ind. π NULLif none could be found. π
topology and the device dv_ind must match the local machine. I/O devices detection and the ROCm SMI component must be enabled in the topology. If they're not, the locality of the object may still be found using hwloc_rsmi_get_device_cpuset(). iykyk.
Note β the corresponding hwloc PCI device may be found by looking at the result parent pointer (unless PCI devices are filtered out). π
π§ hwloc_obj_t hwloc_rsmi_get_device_osdev_by_index (hwloc_topology_t topology, uint32_t dv_ind) [inline] π§
Get the hwloc OS device object corresponding to the AMD GPU device whose index is dv_ind. Simple as that, bestie. πΈ
π Returns π
- The hwloc OS device object describing the AMD GPU device whose index is
dv_ind. π₯ NULLif none could be found. π
The topology topology does not necessarily have to match the current machine. For instance, the topology may be an XML import of a remote host. I/O devices detection and the ROCm SMI component must be enabled in the topology. π¦
Note β the corresponding PCI device object can be obtained by looking at the OS device parent object (unless PCI devices are filtered out). π
β¨ Author β¨
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code. π€β¨
okay that's the whole page, bestie. this came from Hardware Locality (hwloc), Version 2.15.0, and it's the hwlocality_rsmi(3) page β love u, bye π«Άπ
π¦ where this page comes from
- arch rolling: hwloc 2.15.0-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms