Skip to content

Commit a7fa133

Browse files
committed
levelzero.h: we always return the root/parent device, not a subdevice
Refs #698 Signed-off-by: Brice Goglin <[email protected]> (cherry picked from commit cb3a260)
1 parent a27db8b commit a7fa133

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/hwloc/levelzero.h

+4
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ hwloc_levelzero_get_device_cpuset(hwloc_topology_t topology __hwloc_attribute_un
106106
* topology. If not, the locality of the object may still be found using
107107
* hwloc_levelzero_get_device_cpuset().
108108
*
109+
* \note If the input L0 device is actually a subdevice, then its parent
110+
* (root device) is actually translated, i.e. the main hwloc OS device
111+
* is returned instead of one of its children.
112+
*
109113
* \note The corresponding hwloc PCI device may be found by looking
110114
* at the result parent pointer (unless PCI devices are filtered out).
111115
*/

0 commit comments

Comments
 (0)