KSCALAPACKGetVersion
Obtain the ScaLAPACK version information.
Interface Definition
int KSCALAPACKGetVersion(KSCALAPACKVersion *ver);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
ver |
Pointer to the KSCALAPACKVerison structure. |
Storage version information. This parameter value cannot be NULL. |
Input/Output |
Dependencies
#include "kml_service.h"
#include "kscalapack.h"
Example
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 AppendInfo: %s\nSoftware Name: %s\nSoftware Version: %s\n",
ver->productName, ver->productVersion,
ver->componentName, ver->componentVersion, ver->componentAppendInfo,
ver->softwareName, ver->softwareVersion);
return 0;
}
Execution result:
Product Name: Kunpeng Boostkit Product Version: 23.0.RC2 Component Name: BoostKit-kml Component Version: 1.8.0 Component AppendInfo: gcc Software Name: boostkit-kml-scalapack Software Version: 1.8.0
The version number in the example above are for reference only.
Parent topic: Support Functions