Skip to content

Commit 74a98d1

Browse files
committed
added comment about cached device order
Signed-off-by: Byoungro So <[email protected]>
1 parent 407b8ee commit 74a98d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sycl/plugins/level_zero/pi_level_zero.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ struct _pi_device : _pi_object {
157157
ze_device_handle_t ZeDevice;
158158

159159
// Keep the subdevices that are partitioned from this pi_device for reuse
160+
// The order of sub-devices in this vector is repeated from the
161+
// ze_device_handle_t array that are returned from zeDeviceGetSubDevices()
162+
// call, which will always return sub-devices in the fixed same order.
160163
std::vector<pi_device> SubDevices;
161164

162165
// PI platform to which this device belongs.

0 commit comments

Comments
 (0)