Function: create_notify
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Creates a Notify object.
Prototype
-
C Prototype
aclError aclrtCreateNotify(aclrtNotify *notify, uint64_t flag) -
Python Function
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. If 0 is returned, the operation is successful. If other values are returned, the operation fails. |
Constraints
The number of Notify objects supported varies depending on the hardware model.
- For Ascend 950PR&950DT products, a maximum of 65535 Notify objects are supported per device.
- For Atlas A3 and Atlas A2 products, a maximum of 8192 Notify objects are supported per device.
- For Atlas 200I/500 A2 inference products, a maximum of 2048 Notify objects are supported per device.
- For Atlas inference and training products, a maximum of 1024 Notify objects are supported per device.