Function: reset_event

C Prototype

aclError aclrtResetEvent(aclrtEvent event, aclrtStream stream)

Python Function

ret = acl.rt.reset_event(event, stream)

Function Usage

Resets an event. Resets the event only after all tasks in the stream are completely executed. This API is asynchronous.

Input Description

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

stream: int, pointer address of the stream object where the event is located.

Return Value

ret: int, error code.

Restrictions

  • Events created by calling acl.rt.create_event_ex_with_flag cannot use this API.
  • This API is asynchronous. The API call delivers a task rather than executes a task. After this API is called, call the synchronization API (for example, acl.rt.synchronize_stream) to ensure that the task is complete.