Records an event in a stream. This API is synchronous.
API call sequence: aclrtCreateEvent --> aclrtRecordEvent --> aclrtStreamWaitEvent --> aclrtResetEvent
For the Ascend 310 AI Processor, a single device supports a maximum of 1023 events.
For the Ascend 910 AI Processor, a single device supports a maximum of 65535 events.
For the Ascend 310P AI Processor, a single device supports a maximum of 1023 events.
aclError aclrtRecordEvent(aclrtEvent event, aclrtStream stream)
Parameter |
Input/Output |
Description |
|---|---|---|
event |
Input |
Event to record. |
stream |
Input |
Stream to record event for. To specify the default stream, pass NULL. |
0 on success; else, failure.