Function: record_event
|
C Prototype |
aclError aclrtRecordEvent(aclrtEvent event, aclrtStream stream) |
|---|---|
|
Python Function |
ret = acl.rt.record_event(event, stream) |
|
Function Usage |
Records an event in a stream. When this API is called, pyACL captures the tasks delivered on the current stream and records them in the event. Therefore, you can later call acl.rt.query_event_status to check whether all tasks captured in the event are completed or call acl.rt.stream_wait_event to wait until all tasks are completed. For events created using acl rt.create_event_ex_with_flag:
|
|
Input Description |
event: int, pointer address of the event to be recorded. stream: int. Record the event in the specified stream (pointer address). If the default stream is used, set this parameter to 0. |
|
Return Value |
ret: int, error code.
|
|
Restrictions |
|
|
Reference |
For the API call example, see Event Synchronization and Inter-Stream Synchronization. |