|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Records an event in a stream. When this API is called, the tasks that have been delivered in the current stream are captured and recorded in the event. Therefore, when the acl.rt.query_event_status or acl.rt.stream_wait_event API is called later, the system checks or waits until all the tasks captured in the event are complete.
For events created using acl rt.create_event_ex_with_flag:
1
|
aclError aclrtRecordEvent(aclrtEvent event, aclrtStream stream) |
1
|
ret = acl.rt.record_event(event, stream) |
|
Parameter |
Description |
|---|---|
|
event |
Int, pointer address of the event to be recorded. |
|
stream |
Int, the specified stream (pointer address) recording the event. 0 indicates the default stream. |
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code. 0 on success; else, failure. |
API call sequence: acl.rt.create_event-->acl.rt.record_event-->acl.rt.stream_wait_event-->acl.rt.reset_event
For the API call example, see Event Synchronization and Synchronous Wait of Tasks Between Streams (Implemented Using Events).