---
title: 函数：create_notify
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclpythondevg_01_1046.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclpythondevg_01_1046.html
indexId: 231ed3c34da6edc66cb045f6fbc19cc16560f3a548f9d8293add5e665639f2b471
---
# 函数：create_notify


#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |


#### 功能说明

创建Notify。


#### 函数原型

- C函数原型

```
aclError aclrtCreateNotify(aclrtNotify *notify, uint64_t flag)
```


- python函数
  1 notify, ret = acl.rt.create_notify(flag)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| flag | int，预留参数。当前固定配置为0。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| notify | int，Notify的指针地址。 |
| ret | int，返回0表示成功，返回其他值表示失败。 |


#### 约束说明

不同型号的硬件支持的Notify数量不同，如下表所示：

| 型号 | 单个Device支持的Notify最大数 |
| --- | --- |
| Atlas 350 加速卡 | 65535 |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | 8192 |
| Atlas 200I/500 A2 推理产品 | 2048 |
| Atlas 推理系列产品 Atlas 训练系列产品 | 1024 |
