Skip to content
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
2 changes: 2 additions & 0 deletions sycl/plugins/level_zero/pi_level_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5486,6 +5486,7 @@ pi_result piEnqueueMemBufferMap(pi_queue Queue, pi_mem Buffer,
if (Event) {
(*Event)->ZeCommandList = CommandList->first;
CommandList->second.append(*Event);
PI_CALL(piEventRetain(*Event));
}

if (Buffer->MapHostPtr) {
Expand Down Expand Up @@ -5604,6 +5605,7 @@ pi_result piEnqueueMemUnmap(pi_queue Queue, pi_mem MemObj, void *MappedPtr,
// Set the commandlist in the event
(*Event)->ZeCommandList = CommandList->first;
CommandList->second.append(*Event);
PI_CALL(piEventRetain(*Event));

const auto &ZeCommandList = CommandList->first;
if ((*Event)->WaitList.Length) {
Expand Down