Rate This Document
Findability
Accuracy
Completeness
Readability

kutacc_get_version

Obtain the KuTACC version information.

Interface Definition

int kutacc_get_version(kutacc_version_t *version)

Parameters

Parameter

Description

Value Range

Input/Output

version

Product information structure.

The value cannot be NULL.

Output

Return Value

  • Success: KUTACC_OK
  • Failure: KUTACC_ERROR

Examples

#include <stdio.h>
#include "kutacc.h"
 
int main()
{
        kutacc_version_t version;
        int status = kutacc_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_version = %s\n", version.component_version);
        printf("component_abi_version = %s\n", version.component_abi_version);
        printf("component_appendinfo = %s\n", version.component_appendinfo);
        return 0;
}

Output:

product_name = Kunpeng HPCKit
product_version = 26.1.RC1
component_name = KuTACC
component_version = 26.1.RC1
component_abi_version = 1
component_appendinfo = bisheng

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