Skip to content

Commit 94943f3

Browse files
committed
[SYCL] Remove branch which is never taken
Event is retained explicitely when created to ensure that the event is not destroyed before it is really signalled. It is release in Event->cleanup after event is singalled. This means that if reference count for an event is zero then cleanup was already called for this event and is not going to be called anymore.
1 parent ec97c57 commit 94943f3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5224,9 +5224,6 @@ static pi_result EventRelease(pi_event Event, pi_queue LockedQueue) {
52245224
}
52255225

52265226
if (--(Event->RefCount) == 0) {
5227-
if (!Event->CleanedUp)
5228-
Event->cleanup(LockedQueue);
5229-
52305227
if (Event->CommandType == PI_COMMAND_TYPE_MEM_BUFFER_UNMAP &&
52315228
Event->CommandData) {
52325229
// Free the memory allocated in the piEnqueueMemBufferMap.

0 commit comments

Comments
 (0)