KSOLVERGetVersion
Obtain the solver product version information.
Interface Definition
C interface:
int KSOLVERGetVersion(KSOLVERVersion *ver);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
ver |
Pointer to the KSOLVERVersion structure |
Storage version information. This parameter value cannot be NULL. |
Input/Output |
Dependencies
#include "kml_solver.h"
#include "kml_service.h"
Example
C interface:
1 2 3 4 5 6 7 8 9 10 | int main() { KSOLVERVersion* ver = (KSOLVERVersion*)malloc(sizeof(KSOLVERVersion)); int status = KSOLVERGetVersion(ver); 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; } |
Output:
1 2 3 4 5 6 7 | Product Name: Kunpeng HPCKit Product Version: 24.0.RC1 Component Name: HPCKit-kml Component Version: 2.3.0 Component AppendInfo: gcc Software Name: hpckit-kml-solver Software Version: 2.3.0 |
The version numbers in the example above are for reference only.
Parent topic: Function Definition (Single-node Edition)