我要评分
获取效率
正确性
完整性
易理解

KSVMLGetVersion

Obtain the SVML version information.

Interface Definition

int KSVMLGetVersion(KSVMLVersion *ver)

Parameters

Parameter

Description

Value Range

Input/Output

ver

Product information structure.

The value cannot be NULL.

Output

Return Value

  • Success: The value 1 is returned.
  • Failure: The value 0 is returned.

Example

#include <stdio.h>
#include "ksvml.h"

int main()
{
    KSVMLVersion svmlver;
    int status = KSVMLGetVersion(&svmlver);
    if (status == 0) {
        return 0;
    }
    printf("Ksvml\n");
    printf("Product Name: %s\n", svmlver.productName);
    printf("Product Version: %s\n", svmlver.productVersion);
    printf("Component Name: %s\n", svmlver.componentName);
    printf("Component Version: %s\n", svmlver.componentVersion);
    printf("Component AppendInfo: %s\n", svmlver.componentAppendInfo);
    printf("Software Name: %s\n", svmlver.softwareName);
    printf("Software Version: %s\n", svmlver.softwareVersion);
        return 0;
}

Output:

Product Name: Kunpeng Boostkit
Product Version: 23.0.RC2
Component Name: BoostKit-kml
Component Version: 1.8.0
Component AppendInfo: gcc
Software Name: boostkit-kml-svml
Software Version: 1.8.0

The version number and compile time are subject to the running results in your environment. The preceding results are for reference only.