Skip to content

[SYCL][L0] Fix printf format specifier #8063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions sycl/plugins/level_zero/pi_level_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ static void printZeEventList(const _pi_ze_event_list_t &PiZeEventList) {
zePrint(" NumEventsInWaitList %d:", PiZeEventList.Length);

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

zePrint("\n");
Expand Down Expand Up @@ -5629,7 +5629,7 @@ piEnqueueKernelLaunch(pi_queue Queue, pi_kernel Kernel, pi_uint32 WorkDim,
}

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

Expand Down Expand Up @@ -6138,7 +6138,7 @@ pi_result piEventsWait(pi_uint32 NumEvents, const pi_event *EventList) {
die("The host-visible proxy event missing");

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

zePrint("calling zeCommandListAppendMemoryCopy() with\n"
" ZeEvent %#lx\n",
" ZeEvent %#llx\n",
pi_cast<std::uintptr_t>(ZeEvent));
printZeEventList(WaitList);

Expand Down Expand Up @@ -6959,7 +6959,7 @@ static pi_result enqueueMemCopyRectHelper(
const auto &WaitList = (*Event)->WaitList;

zePrint("calling zeCommandListAppendMemoryCopy() with\n"
" ZeEvent %#lx\n",
" ZeEvent %#llx\n",
pi_cast<std::uintptr_t>(ZeEvent));
printZeEventList(WaitList);

Expand Down Expand Up @@ -7003,7 +7003,7 @@ static pi_result enqueueMemCopyRectHelper(

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

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

if (auto Res = Queue->executeCommandList(CommandList, Blocking, OkToBatch))
Expand Down Expand Up @@ -7216,7 +7216,7 @@ enqueueMemFillHelper(pi_command_type CommandType, pi_queue Queue, void *Ptr,
WaitList.Length, WaitList.ZeEventList));

zePrint("calling zeCommandListAppendMemoryFill() with\n"
" ZeEvent %#lx\n",
" ZeEvent %#llx\n",
pi_cast<pi_uint64>(ZeEvent));
printZeEventList(WaitList);

Expand Down