Skip to content

Commit

Permalink
levelzero.h: we always return the root/parent device, not a subdevice
Browse files Browse the repository at this point in the history
Refs #698

Signed-off-by: Brice Goglin <[email protected]>
(cherry picked from commit cb3a260)
  • Loading branch information
bgoglin committed Dec 4, 2024
1 parent a27db8b commit a7fa133
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/hwloc/levelzero.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ hwloc_levelzero_get_device_cpuset(hwloc_topology_t topology __hwloc_attribute_un
* topology. If not, the locality of the object may still be found using
* hwloc_levelzero_get_device_cpuset().
*
* \note If the input L0 device is actually a subdevice, then its parent
* (root device) is actually translated, i.e. the main hwloc OS device
* is returned instead of one of its children.
*
* \note The corresponding hwloc PCI device may be found by looking
* at the result parent pointer (unless PCI devices are filtered out).
*/
Expand Down

0 comments on commit a7fa133

Please sign in to comment.