Function: record_notify

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

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 Value

Return Value

Description

ret

Int, 0 on success; else, failure.