Function: query_event_wait_status

C Prototype

aclError aclrtQueryEventWaitStatus(aclrtEvent event, aclrtEventWaitStatus *status)

Python Function

status, ret=acl.rt.query_event_wait_status(event)

Function Usage

Queries whether the tasks awaiting in an event are completed after acl.stream_wait_event call.

Input Description

event: int, pointer address of the event object to be queried.

Return Value

status: int, pointer address of the event status. For details, see aclrtEventWaitStatus.

  • ACL_EVENT_RECORDED_STATUS_NOT_READY = 0: The event is not recorded in the stream, or the event recorded in the stream is not executed or fails to be executed.
  • ACL_EVENT_RECORDED_STATUS_COMPLETE = 1: The event recorded in the stream is successfully executed.

ret: int, error code.

Restrictions

Events created by calling acl.rt.create_event_ex_with_flag cannot use this API.