---
title: SetStatus
description: "昇腾AI处理器与昇腾产品的对应关系，请参见《昇腾产品形态说明(https://www.hiascend.com/document/detail/zh/AscendFAQ/ProduTech/productform/hardwaredesc_0001.html)》"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/Profiling/mindieprofiling_0071.html
sourcePath: /source/zh/canncommercial/900/devaids/Profiling/mindieprofiling_0071.html
indexId: 6337ef681e84541c70f0d5ba8a99435b9824ebfcda7473761548dc2565a86b6e73
---
# SetStatus

#### 产品支持情况

昇腾AI处理器与昇腾产品的对应关系，请参见《昇腾产品形态说明(https://www.hiascend.com/document/detail/zh/AscendFAQ/ProduTech/productform/hardwaredesc_0001.html)》


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


针对 Atlas A2 训练系列产品 / Atlas A2 推理系列产品 ，当前仅支持该系列产品中的 Atlas 800I A2 推理产品 。

针对 Atlas 推理系列产品 ，当前仅支持该系列产品中的Atlas 300I Duo 推理卡+Atlas 800 推理服务器（型号：3000）。


#### 功能说明

设置跨度状态。


#### 函数原型

```
Span& SetStatus(const bool isSuccess, const std::string& msg)
```


#### 参数说明


**表1 参数说明**

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| isSuccess | 输入 | 业务的状态，true或者false。 |
| msg | 输入 | 状态信息 |


#### 返回值说明

返回Span类对象的引用，该引用支持链式调用。
