Skip to content

Commit

Permalink
fix: don't unregister csr clients in EventImp::reset()
Browse files Browse the repository at this point in the history
Related-To: GSD-7129
Signed-off-by: Warchulski, Jaroslaw <[email protected]>
Source: d1061cd
  • Loading branch information
jwarchul authored and Compute-Runtime-Automation committed Jan 22, 2024
1 parent 4cb6bbd commit 62ca7bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion level_zero/core/source/event/event_impl.inl
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ ze_result_t EventImp<TagSizeT>::reset() {
}

unsetInOrderExecInfo();
unsetCmdQueue();
latestUsedCmdQueue = nullptr;
this->resetCompletionStatus();
this->resetDeviceCompletionData(false);
this->l3FlushAppliedOnKernel.reset();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -1359,7 +1359,7 @@ HWTEST_F(CommandListCreate, givenSignalEventWhenCallingSynchronizeThenUnregister
zeEventHostReset(event3);

zeEventHostSynchronize(event3, 1);
EXPECT_EQ(ultCsr->getNumClients(), 0u);
EXPECT_EQ(ultCsr->getNumClients(), 1u);
}

zeEventDestroy(event1);
Expand Down

0 comments on commit 62ca7bd

Please sign in to comment.