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

Creates a Notify.

Prototype

  • C Prototype
    aclError aclrtCreateNotify(aclrtNotify *notify, uint64_t flag)
  • Python Function
    1
    notify, ret = acl.rt.create_notify(flag)
    

Parameters

Parameter

Description

flag

Int, reserved parameter. The value is fixed at 0.

Return Values

Return Value

Description

notify

Int, pointer address of Notify.

ret

Int, 0 on success; else, failure.

Restrictions

The number of Notify objects supported by different hardware models is different, as shown in the following table.

Model

Max. Notify Objects for a Device

Ascend 950PR/Ascend 950DT

65,535

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

8,192

Atlas 200I/500 A2 inference products

2,048

Atlas inference products

Atlas training products

1,024