Skip to content

Commit ca779d0

Browse files
committed
[SYCL]: fixed uninitialized local variable used
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent 94138e2 commit ca779d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/plugins/level_zero/pi_level_zero.hpp

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ struct _pi_context : _pi_object {
192192
ZeEventPool{nullptr}, NumEventsAvailableInEventPool{},
193193
NumEventsLiveInEventPool{} {
194194
// Create USM allocator context for each pair (device, context).
195-
for (uint32_t I; I < NumDevices; I++) {
195+
for (uint32_t I = 0; I < NumDevices; I++) {
196196
pi_device Device = Devs[I];
197197
SharedMemAllocContexts.emplace(
198198
std::piecewise_construct, std::make_tuple(Device),

0 commit comments

Comments
 (0)