---
title: GetCurrentPlatformInfo
description: 获取NPU平台信息，包括AI处理器型号、参数等信息。
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/aolapi/atlasascendc_api_07_1136.html"
---

# GetCurrentPlatformInfo

#### 功能说明

获取NPU平台信息，包括AI处理器型号、参数等信息。


#### 函数原型

```
const PlatformInfo &GetCurrentPlatformInfo()
```


#### 参数说明

无


#### 返回值说明

返回PlatformInfo。


#### 约束说明

无


#### 调用示例

```
// 获取当前平台信息
void func() {
    const PlatformInfo npuInfo = GetCurrentPlatformInfo();
}
```
