Rate This Document
Findability
Accuracy
Completeness
Readability

Version Query Function

Obtain the VSL version information.

Interface Definition

KmlVslResult kml_vsl_getVersion(KVSLVersion *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.

Examples

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

int main(void)
{
    KVSLVersion ver;
    KmlVslResult ret = kml_vsl_getVersion(&ver);
    if (ret == 1) {
        printf("Vsl\n");
        printf("Product Name:         %s\n", ver.productName);
        printf("Product Version:      %s\n", ver.productVersion);
        printf("Component Name:       %s\n", ver.componentName);
        printf("Component Version:    %s\n", ver.componentVersion);
        printf("Component AbiVersion: %s\n", ver.componentAbiVersion);
        printf("Component AppendInfo: %s\n", ver.componentAppendInfo);
        printf("Software Name:        %s\n", ver.softwareName);
        printf("Software Version:     %s\n", ver.softwareVersion);
    }
}

Output:

Vsl
Product Name:         Kunpeng HPCKit
Product Version:      24.0.RC1
Component Name:       HPCKit-kml
Component Version:    2.3.0
Component AbiVersion: 1
Component AppendInfo: gcc
Software Name:        hpckit-kml-vsl
Software Version:     2.3.0

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