---
title: GetSocLongVersion
description: "获取AI处理器的长型号信息，格式形如Ascendxxxyy。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/aolapi/atlasascendc_api_07_1138.html
sourcePath: /source/zh/canncommercial/900/API/aolapi/atlasascendc_api_07_1138.html
indexId: 6de93133bb823bdac866920115d184fb568ec4e7e88a52e0c2c4600db9ac660a70
---
# GetSocLongVersion

#### 功能说明

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


#### 函数原型

```
const std::string &GetSocLongVersion()
```


#### 参数说明

无


#### 返回值说明

返回字符串形式的长型号信息。


#### 约束说明

无


#### 调用示例

```
void func() {
    // Ascendxxx请替换为实际版本型号
    if (GetCurrentPlatformInfo().GetSocLongVersion() != "Ascendxxx") {
        return;
    }
}
```
