Rate This Document
Findability
Accuracy
Completeness
Readability

KSCAKSOLVERGetVersion

Obtain the solver product version information.

Interface Definition

C interface:

int KSCASOLVERGetVersion(KSCASOLVERVersion *ver);

Parameters

Parameter

Type

Description

Input/Output

ver

Pointer to the KSCASOLVERVersion structure

Stores version information. The value cannot be NULL.

Input/Output

Dependencies

#include "kml_scasolver.h"

#include "kml_service.h"

Examples

C interface:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
int main()
{
    KSCASOLVERVersion *ver = (KSCASOLVERVersion*)malloc(sizeof(KSCASOLVERVersion));
    int res = KSCASOLVERGetVersion(ver);
    if (res != 0) {
        printf("Get version error.\n");
        return 0;
    }
    printf("Product Name: %s\nProduct Version: %s\nComponent Name: %s\nComponent Version: %s\nComponent AbiVersion: %s\nComponent AppendInfo: %s\nSoftware Name: %s\nSoftware Version: %s\n",
            ver->productName, ver->productVersion, ver->componentName,
            ver->componentVersion, ver->componentAbiVersion, ver->componentAppendInfo,
            ver->softwareName, ver->softwareVersion);

    return 0;
}

Output:

1
2
3
4
5
6
7
8
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-scasolver
Software Version: 2.3.0

The version number in the example above is for reference only.