Function: create_event
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Creates an event, which can be used to compute the elapsed time between two events and synchronize streams.
Prototype
- C Prototype
1aclError aclrtCreateEvent(aclrtEvent *event)
- Python Function
1event, ret = acl.rt.create_event()
Parameter Description
None.
Return Value Description
Return Value |
Description |
|---|---|
event |
Int, pointer address of the created event object. |
ret |
Int, error code: 0 on success; else, failure. |
Restrictions
After an event is created by calling this API, the system applies for event resources only when the acl.rt.record_event API is called. Therefore, the number of events is limited. After the number of events reaches the upper limit, the system waits for resource release.
Limit on the number of events:
For the
For the
For the
For the
For the