---
title: KSVMLGetVersion
description: "获取SVML产品版本信息："
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2200/accel/kunpengaccel_kml_16_0284.html
sourcePath: /source/zh/kunpengboostkithistory/2200/accel/kunpengaccel_kml_16_0284.html
indexId: 0db9ffda3bb4df4e751a3b361a87e901ab2100a33bb2d3a00ea9efa5b6a5814374
---
# KSVMLGetVersion

获取SVML产品版本信息：

int KSVMLGetVersion(KSVMLVersion *ver)

#### 参数

| 参数名 | 描述 | 取值范围 | 输入/输出 |
| --- | --- | --- | --- |
| ver | 产品信息结构体 | 非空 | 输出 |


#### 返回值

- 成功：返回1。
- 失败：返回0。


#### 示例

```
#include <stdio.h>
#include "ksvml.h"
int main()
{
KSVMLVersion* ver = (KSVMLVersion*)malloc(sizeof(KSVMLVersion));
int status = KSVMLGetVersion(ver);
printf("Component name          : %s\n", ver->componentName);
printf("Component Version       : %s\n", ver->componentVersion);
printf("Software Name           : %s\n", ver->softwareName);
printf("Software Version        : %s\n", ver->softwareVersion);
return 0；
}
```

运行结果：

```
Component name          : BoostKit-kml
Component Version       : 1.6.0
Software Name           : boostkit-kml-svml
Software Version        : 1.6.0
```

版本号和编译时间以实际运行结果为准，上述结果仅供参考。
