Skip to content

Commit 57dc2c2

Browse files
committed
[SYCL][L0] Fix memory leak in USM prefetch.
L0 plugin increments the ref count of the dependency event twice in USM prefetch. The fix is to remove the unnecessary retain call. Signed-off-by: Byoungro So <[email protected]>
1 parent 39515bd commit 57dc2c2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7294,11 +7294,6 @@ pi_result piextUSMEnqueuePrefetch(pi_queue Queue, const void *Ptr, size_t Size,
72947294
// Lock automatically releases when this goes out of scope.
72957295
std::lock_guard<std::mutex> lock(Queue->PiQueueMutex);
72967296

7297-
_pi_ze_event_list_t TmpWaitList;
7298-
if (auto Res = TmpWaitList.createAndRetainPiZeEventList(NumEventsInWaitList,
7299-
EventWaitList, Queue))
7300-
return Res;
7301-
73027297
// Get a new command list to be used on this call
73037298
pi_command_list_ptr_t CommandList{};
73047299
// TODO: Change UseCopyEngine argument to 'true' once L0 backend

0 commit comments

Comments
 (0)