Function: record_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

Records a Notify in a specified stream. The acl.rt.record_notify and acl.rt.wait_and_reset_notify APIs are used together to implement synchronization between multiple streams.

Prototype

  • C Prototype
    aclError aclrtRecordNotify(aclrtNotify notify, aclrtStream stream)
  • Python Function
    1
    ret = acl.rt.record_notify(notify, stream)
    

Parameters

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 Stream1.

Pass 0 if the default stream is used.

Return Values

Return Value

Description

ret

Int, 0 on success; else, failure.