Skip to content

Commit 00048b3

Browse files
authored
[SYCL] Fix a possible null reference in L0 plugin code (#5521)
Signed-off-by: Arvind Sudarsanam <[email protected]>
1 parent 85ccdc0 commit 00048b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,9 +1476,9 @@ _pi_queue::getZeCopyCommandQueue(int *CopyQueueIndex,
14761476
*CopyQueueGroupIndex = Device->ZeMainCopyQueueGroupIndex;
14771477
else
14781478
*CopyQueueGroupIndex = Device->ZeLinkCopyQueueGroupIndex;
1479+
zePrint("Note: CopyQueueGroupIndex = %d\n", *CopyQueueGroupIndex);
14791480
}
14801481
zePrint("Note: CopyQueueIndex = %d\n", *CopyQueueIndex);
1481-
zePrint("Note: CopyQueueGroupIndex = %d\n", *CopyQueueGroupIndex);
14821482
ze_command_queue_handle_t ZeCopyCommandQueue = nullptr;
14831483
if (getOrCreateCopyCommandQueue(0, ZeCopyCommandQueue))
14841484
return nullptr;

0 commit comments

Comments
 (0)