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

#### 功能说明

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


#### 函数原型

```
SocVersion GetSocVersion()
```


#### 参数说明

无


#### 返回值说明

返回SocVersion。


#### 约束说明

无


#### 调用示例

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