Skip to content

Commit f207b0f

Browse files
committed
levelzero/xelink: correctly assign ports to subdevices
This also fixes a crash in verbose messages on GPUs without subdevices Signed-off-by: Brice Goglin <[email protected]>
1 parent 5be22ea commit f207b0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hwloc/topology-levelzero.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ hwloc__levelzero_ports_get(zes_device_handle_t dvh,
447447
hwloc_debug(" no such subdevice exists, ignoring\n");
448448
continue;
449449
}
450+
} else {
450451
hports->ports[id].osdev = root_osdev;
451452
}
452453

0 commit comments

Comments
 (0)