aclrtCreateNotify

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Creates a Notify object.

Prototype

aclError aclrtCreateNotify(aclrtNotify *notify, uint64_t flag)

Parameters

Parameter

Input/Output

Description

notify

Output

Pointer to the Notify.

flag

Input

Flag of the Notify pointer.

The flag can be set to the following macros:

  • ACL_NOTIFY_DEFAULT
    If this bit is enabled, the created Notify is called on a host by default.
    #define ACL_NOTIFY_DEFAULT 0x00000000U
  • ACL_NOTIFY_DEVICE_USE_ONLY
    If this bit is enabled, the created Notify is called only on a device.
    #define ACL_NOTIFY_DEVICE_USE_ONLY 0x00000001U

Returns

0 on success; else, failure. For details, see aclError.

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