Function: wait_and_reset_notify
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Blocks the specified stream until the specified Notify is complete and then resets the Notify.
Prototype
- C Prototype
aclError aclrtWaitAndResetNotify(aclrtNotify notify, aclrtStream stream, uint32_t timeout)
- Python Function
1ret = acl.rt.wait_and_reset_notify(notify, stream, timeout)
Parameters
Parameter |
Description |
|---|---|
notify |
Int, pointer address of the Notify to be recorded. |
stream |
int, stream pointer address. For example, in the Stream1 scenario such as Stream2, set this parameter to Stream2. Pass 0 if the default stream is used. |
timeout |
Int, timeout interval of the wait. The options are as follows: 0: waits forever. > 0: specific timeout interval, in milliseconds. |
Return Value
Returned Value |
Description |
|---|---|
ret |
Int, 0 on success; else, failure. |