KLAPACKGetVersion
Obtain the LAPACK version information.
Interface Definition
int KLAPACKGetVersion(KLAPACKVersion *ver);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
ver |
Pointer to the KLAPACKVersion structure |
Storage version information. This parameter value cannot be NULL. |
Input/Output |
Dependencies
#include "kml_service.h"
#include "klapack.h"
Example
int main()
{
KLAPACKVersion *ver = (KLAPACKVersion*)malloc(sizeof(KLAPACKVersion));
int res = KLAPACKGetVersion(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;
}
Command output:
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-lapack Software Version: 1.8.0
The version number in the example above is for reference only.
Parent topic: Support Function