---
title: SendNotify
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/hixlug/llmcrv2_42_48.html
sourcePath: /source/zh/canncommercial/900/API/hixlug/llmcrv2_42_48.html
indexId: be8ee0692732805164e7889b776cfe1d9b95b65db49c36d38273dca364b57a7059
---
# SendNotify

#### 产品支持情况

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


说明：针对 Atlas A2 训练系列产品 / Atlas A2 推理系列产品 ，仅支持Atlas 800I A2 推理服务器、A200I A2 Box 异构组件。


#### 函数功能

向远端engine发送Notify信息。


#### 函数原型

```
Status SendNotify(const AscendString &remote_engine, const NotifyDesc &notify, int32_t timeout_in_millis = 1000)
```


#### 参数说明

| 参数名称 | 输入/输出 | 取值说明 |
| --- | --- | --- |
| remote\_engine | 输入 | 远端AdxlEngine的唯一标识 |
| notify | 输入 | 需要发送的Notify内容。 内容中的name和notify\_msg长度上限均为1024字符。 |
| timeout\_in\_millis | 输入 | 发送超时时间，单位ms。缺省值：1000 |


#### 调用示例

无


#### 返回值

- SUCCESS：成功
- 其他：失败


#### 约束说明

- 调用该接口之前，需要先调用  Connect
接口完成与对端的建链。
- 该接口需要和  Initialize
运行在同一个线程上，如需切换线程调用该接口，需要在  Initialize
所在线程调用“aclrtGetCurrentContext(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclcppdevg_03_0062.html)”获取context，并在新线程调用“aclrtSetCurrentContext(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclcppdevg_03_0061.html)”设置context。
