---
title: GetSocVersion
description: 获取AI处理器的短型号信息，格式形如Ascendxxx。
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/aolapi/atlasascendc_api_07_1137.html"
---

# GetSocVersion

#### 功能说明

获取AI处理器的短型号信息，格式形如Ascendxxx。


#### 函数原型

```
SocVersion GetSocVersion()
```


#### 参数说明

无


#### 返回值说明

返回SocVersion。


#### 约束说明

无


#### 调用示例

```
void func() {
    // ASCENDXXX请替换为实际版本型号
    if (GetCurrentPlatformInfo().GetSocVersion() != SocVersion::ASCENDXXX) {
        return;
    }
}
```
