Creates an event. This API is synchronous.
The created events can be used to compute the elapsed time between two events, synchronize streams, and synchronize on an event.
aclError aclrtCreateEvent(aclrtEvent *event)
Parameter |
Input/Output |
Description |
|---|---|---|
event |
Output |
Event pointer. |
0 on success; else, failure.
aclrtCreateEventWithFlag: creates an event with a flag. Currently, the flag must be ACL_EVENT_TIME_LINE, which indicates that the number of created events is not limited, but the created events can only be used to compute the elapsed time between events.