---
title: SendNotify
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/hixlug/llmcrv2_42_33.html
sourcePath: /source/zh/canncommercial/900/API/hixlug/llmcrv2_42_33.html
indexId: 50521ceb724597a89c8a7f9b71869f3bce94af269a4664200cf5dd1e0235b57159
---
# 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 | 输入 | 远端Hixl的唯一标识。 |
| 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。
