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

#### 产品支持情况

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


#### 功能说明

在指定Stream上记录一个Notify。acl.rt.record_notify接口与acl.rt.wait_and_reset_notify接口配合使用时，主要用于多Stream之间同步等待的场景。


#### 函数原型

- C函数原型

```
aclError aclrtRecordNotify(aclrtNotify notify, aclrtStream stream)
```


- python函数
  1 ret = acl.rt.record_notify(notify, stream)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| notify | int，待记录的Notify指针地址。 |
| stream | int，指定Stream指针地址。例如，Stream2等Stream1的场景，此处配置为Stream1。 如果使用默认Stream，此处设置为0。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| ret | int，返回0表示成功，返回其他值表示失败。 |
