Skip to content

Commit 13ff634

Browse files
Update sycl/source/detail/kernel_info.hpp
Co-authored-by: aelovikov-intel <[email protected]>
1 parent 34f24f3 commit 13ff634

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/source/detail/kernel_info.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ get_kernel_device_specific_info<
182182
nullptr);
183183
assert(Device2SpillMap.size() == URDevices.size());
184184

185-
// Map the result back to the program devices
185+
// Map the result back to the program devices. UR provides the following guarantee:
186+
// > The order of the devices is guaranteed (i.e., the same as queried by urDeviceGet) by the UR within a single application even if the runtime is reinitialized.
186187
for (size_t idx = 0; idx < URDevices.size(); ++idx) {
187188
if (URDevices[idx] == Device)
188189
return size_t{Device2SpillMap[idx]};

0 commit comments

Comments
 (0)