Skip to content

Commit 502e0fd

Browse files
[SYCL][L0] Report events as submitted, not running, until they are completed (#9094)
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent 2b63f69 commit 502e0fd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5046,8 +5046,12 @@ pi_result piEventGetInfo(pi_event Event, pi_event_info ParamName,
50465046

50475047
// Level Zero has a much more explicit notion of command submission than
50485048
// OpenCL. It doesn't happen unless the user submits a command list. We've
5049-
// done it just above so the status is at least PI_EVENT_RUNNING.
5050-
pi_int32 Result = PI_EVENT_RUNNING;
5049+
// done it just above so the status is at least PI_EVENT_SUBMITTED.
5050+
//
5051+
// NOTE: We currently cannot tell if command is currently running, so
5052+
// it will always show up "submitted" before it is finally "completed".
5053+
//
5054+
pi_int32 Result = PI_EVENT_SUBMITTED;
50515055

50525056
// Make sure that we query a host-visible event only.
50535057
// If one wasn't yet created then don't create it here as well, and

0 commit comments

Comments
 (0)