Skip to content

Commit 484506b

Browse files
[SYCL][L0] Fix printf format specifier (#8063)
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent daedd57 commit 484506b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,7 @@ static void printZeEventList(const _pi_ze_event_list_t &PiZeEventList) {
22312231
zePrint(" NumEventsInWaitList %d:", PiZeEventList.Length);
22322232

22332233
for (pi_uint32 I = 0; I < PiZeEventList.Length; I++) {
2234-
zePrint(" %#lx", pi_cast<std::uintptr_t>(PiZeEventList.ZeEventList[I]));
2234+
zePrint(" %#llx", pi_cast<std::uintptr_t>(PiZeEventList.ZeEventList[I]));
22352235
}
22362236

22372237
zePrint("\n");
@@ -5634,7 +5634,7 @@ piEnqueueKernelLaunch(pi_queue Queue, pi_kernel Kernel, pi_uint32 WorkDim,
56345634
}
56355635

56365636
zePrint("calling zeCommandListAppendLaunchKernel() with"
5637-
" ZeEvent %#lx\n",
5637+
" ZeEvent %#llx\n",
56385638
pi_cast<std::uintptr_t>(ZeEvent));
56395639
printZeEventList((*Event)->WaitList);
56405640

@@ -6143,7 +6143,7 @@ pi_result piEventsWait(pi_uint32 NumEvents, const pi_event *EventList) {
61436143
die("The host-visible proxy event missing");
61446144

61456145
ze_event_handle_t ZeEvent = HostVisibleEvent->ZeEvent;
6146-
zePrint("ZeEvent = %#lx\n", pi_cast<std::uintptr_t>(ZeEvent));
6146+
zePrint("ZeEvent = %#llx\n", pi_cast<std::uintptr_t>(ZeEvent));
61476147
ZE_CALL(zeHostSynchronize, (ZeEvent));
61486148
EventList[I]->Completed = true;
61496149
}
@@ -6905,7 +6905,7 @@ enqueueMemCopyHelper(pi_command_type CommandType, pi_queue Queue, void *Dst,
69056905
const auto &WaitList = (*Event)->WaitList;
69066906

69076907
zePrint("calling zeCommandListAppendMemoryCopy() with\n"
6908-
" ZeEvent %#lx\n",
6908+
" ZeEvent %#llx\n",
69096909
pi_cast<std::uintptr_t>(ZeEvent));
69106910
printZeEventList(WaitList);
69116911

@@ -6964,7 +6964,7 @@ static pi_result enqueueMemCopyRectHelper(
69646964
const auto &WaitList = (*Event)->WaitList;
69656965

69666966
zePrint("calling zeCommandListAppendMemoryCopy() with\n"
6967-
" ZeEvent %#lx\n",
6967+
" ZeEvent %#llx\n",
69686968
pi_cast<std::uintptr_t>(ZeEvent));
69696969
printZeEventList(WaitList);
69706970

@@ -7008,7 +7008,7 @@ static pi_result enqueueMemCopyRectHelper(
70087008

70097009
ZE_CALL(zeCommandListAppendBarrier, (ZeCommandList, ZeEvent, 0, nullptr));
70107010

7011-
zePrint("calling zeCommandListAppendBarrier() with Event %#lx\n",
7011+
zePrint("calling zeCommandListAppendBarrier() with Event %#llx\n",
70127012
pi_cast<std::uintptr_t>(ZeEvent));
70137013

70147014
if (auto Res = Queue->executeCommandList(CommandList, Blocking, OkToBatch))
@@ -7221,7 +7221,7 @@ enqueueMemFillHelper(pi_command_type CommandType, pi_queue Queue, void *Ptr,
72217221
WaitList.Length, WaitList.ZeEventList));
72227222

72237223
zePrint("calling zeCommandListAppendMemoryFill() with\n"
7224-
" ZeEvent %#lx\n",
7224+
" ZeEvent %#llx\n",
72257225
pi_cast<pi_uint64>(ZeEvent));
72267226
printZeEventList(WaitList);
72277227

0 commit comments

Comments
 (0)