Rate This Document
Findability
Accuracy
Completeness
Readability

KSCALAPACKGetVersion

Obtain the ScaLAPACK version information.

Interface Definition

int KSCALAPACKGetVersion(KSCALAPACKVersion *ver);

Parameters

Parameter

Type

Description

Input/Output

ver

Pointer to the KSCALAPACKVersion structure

Stores version information. The value cannot be NULL.

Input/Output

Dependencies

#include "kml_service.h"

#include "kscalapack.h"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
int main()
{    
    KSCALAPACKVersion *ver = (KSCALAPACKVersion*)malloc(sizeof(KSCALAPACKVersion));
    int res = KSCALAPACKGetVersion(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-scalapack
Software Version: 2.3.0

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