Rate This Document
Findability
Accuracy
Completeness
Readability

kupl_get_version

Obtain the KUPL version information.

Interface Definition

int kupl_get_version(kupl_version_t *version)

Parameters

Parameter

Description

Value Range

Input/Output

version

Product information structure.

The value cannot be NULL.

Output

Return Value

  • Success: KUPL_OK
  • Failure: KUPL_ERROR

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include <stdio.h>
#include "kupl.h"

int main()
{
    kupl_version_t version;
    int status = kupl_get_version(&version);
    printf("product_name = %s\n", version.product_name);
    printf("product_version = %s\n", version.product_version);
    printf("component_name = %s\n", version.component_name);
    printf("component_abi_version = %s\n", version.component_abi_version);
    printf("component_version = %s\n", version.component_version);
    printf("component_appendinfo = %s\n", version.component_appendinfo);
    return 0;
}

Output:

product_name = Kunpeng HPCKit
product_version = 26.1.RC1
component_name = KUPL
component_abi_version = 1
component_version = 26.1.RC1
component_appendinfo = gcc

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