Skip to content
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

[SYCL][PI][L0] Enables command batching in enqueueMemCopyHelper #3232

Merged
merged 1 commit into from
Feb 23, 2021
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
10 changes: 5 additions & 5 deletions sycl/plugins/level_zero/pi_level_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4209,7 +4209,7 @@ enqueueMemCopyHelper(pi_command_type CommandType, pi_queue Queue, void *Dst,
ze_command_list_handle_t ZeCommandList = nullptr;
ze_fence_handle_t ZeFence = nullptr;
if (auto Res = Queue->Context->getAvailableCommandList(Queue, &ZeCommandList,
&ZeFence))
&ZeFence, true))
return Res;

ze_event_handle_t ZeEvent = nullptr;
Expand All @@ -4229,15 +4229,15 @@ enqueueMemCopyHelper(pi_command_type CommandType, pi_queue Queue, void *Dst,
ZE_CALL(zeCommandListAppendMemoryCopy(ZeCommandList, Dst, Src, Size, ZeEvent,
0, nullptr));

if (auto Res =
Queue->executeCommandList(ZeCommandList, ZeFence, BlockingWrite))
return Res;

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

if (auto Res = Queue->executeCommandList(ZeCommandList, ZeFence,
BlockingWrite, true))
return Res;

return PI_SUCCESS;
}

Expand Down