Skip to content

Commit 09715f6

Browse files
authored
[SYCL] Return the correct status info for host_task event (#4161)
The method get_info<info::event::command_execution_status> returned 'completed' status for all events associated with host tasks. Fixed it here. Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent c10875c commit 09715f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/source/detail/event_impl.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ event_impl::get_info<info::event::command_execution_status>() const {
295295
return get_event_info<info::event::command_execution_status>::get(
296296
this->getHandleRef(), this->getPlugin());
297297
}
298-
return info::event_command_status::complete;
298+
return MHostEvent && MState.load() != HES_Complete
299+
? sycl::info::event_command_status::submitted
300+
: info::event_command_status::complete;
299301
}
300302

301303
static uint64_t getTimestamp() {

0 commit comments

Comments
 (0)