Function: wait_and_reset_notify

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Function Usage

Makes a stream wait on a Notify, and then resets the Notify.

Prototype

  • C Prototype
    aclError aclrtWaitAndResetNotify(aclrtNotify notify, aclrtStream stream, uint32_t timeout)
  • Python Function
    1
    ret = acl.rt.wait_and_reset_notify(notify, stream, timeout)
    

Parameter Description

Parameter

Description

notify

Int, pointer address of the Notify to be recorded.

stream

Int, pointer address of the stream. For example, in the scenario where Stream2 waits for Stream1, 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 Description

Return Value

Description

ret

Int, 0 on success; else, failure.