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

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 Value

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

Atlas 350 Accelerator Card

65,535

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

8,192

Atlas 200I/500 A2 inference product

2,048

Atlas inference product

Atlas training product

1,024