函数:create_notify
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
功能说明
创建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最大数 |
---|---|
8192 |
|
2048 |
|
1024 |
父主题: Notify管理