---
title: GetCurrent
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_0066.html
sourcePath: /source/zh/canncommercial/900/devaids/Profiling/mindieprofiling_0066.html
indexId: 74c3112e7d0da080d14ca867df1316d000f7e8a031b9d7edd46e3089dbdef8c473
---
# GetCurrent

#### 产品支持情况

昇腾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）。


#### 功能说明

获取当前Trace的上下文信息。


#### 函数原型

```
const TraceContextInfo& GetCurrent()
```


#### 参数说明

无


#### 返回值说明

返回当前Trace的上下文信息。
