Skip to content

Commit

Permalink
fixing event stamp time (#8324)
Browse files Browse the repository at this point in the history
Signed-off-by: Homa Aghilinasab <[email protected]>
  • Loading branch information
haghilin authored Aug 2, 2024
1 parent 8c55944 commit 75a45f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime_src/hip/core/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ bool event::synchronize()
}
//then the event is considered as completed
set_state(state::completed);
ctime = std::chrono::system_clock::now();

//all commands depend on the event start running
std::lock_guard ch_lock(m_mutex_chain_coms);
Expand All @@ -63,7 +64,6 @@ bool event::synchronize()

bool event::wait()
{
ctime = std::chrono::system_clock::now();
state event_state = get_state();
if (event_state < state::completed)
{
Expand Down

0 comments on commit 75a45f4

Please sign in to comment.