Function: wait_and_reset_notify

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

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

√

Description

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)
    

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 Values

Return Value

Description

ret

Int, 0 on success; else, failure.