---
title: GEGetWarningMsg
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0116.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0116.html
indexId: 81fce0d6535c7109252cb34ea1fd8a61d2e8c9179100d1eb8bee48a9ceb5cbb372
---
# GEGetWarningMsg

#### 产品支持情况

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


#### 头文件/库文件

- 头文件：#include <ge/ge_api.h>
- 库文件：libge_runner.so


#### 功能说明

获取并清空与本接口在同一个进程或线程中的其它接口调用失败时的告警信息。

程序执行结束需要查看告警信息时，调用该接口打印告警信息，与GEGetWarningMsgV2不能同时使用，推荐使用GEGetWarningMsgV2。


#### 函数原型

```
std::string GEGetWarningMsg()
```


#### 参数说明

无


#### 返回值说明

| 参数名 | 类型 | 说明 |
| --- | --- | --- |
| \- | std::string | 执行过程中的告警信息。 |


#### 约束说明

无
